Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001577/0.001577, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001866/0.001866, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 59.34 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09311, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009314/0.1025, allocations: 8.232 MB / 365.8 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004267/0.1068, allocations: 2.762 MB / 368.6 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007381/0.1075, allocations: 23.94 kB / 368.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.109, allocations: 0.5558 MB / 369.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.1102, allocations: 480.2 kB / 369.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.1108, allocations: 259.7 kB / 369.9 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.1123, allocations: 1.506 MB / 371.4 MB, free: 112 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1395/0.2519, allocations: 0.5771 MB / 372 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.2529, allocations: 0.563 MB / 372.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.254, allocations: 0.6078 MB / 373.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003041/0.2543, allocations: 141.1 kB / 373.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000504/0.2548, allocations: 182.1 kB / 373.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.255, allocations: 290.2 kB / 373.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005595/0.2556, allocations: 0.6784 MB / 374.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001683/0.2573, allocations: 1.736 MB / 376.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2573, allocations: 4.438 kB / 376.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2573, allocations: 0 / 376.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.2573, allocations: 0 / 376.2 MB, free: 10.08 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002122/0.2594, allocations: 1.475 MB / 377.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2595, allocations: 9.625 kB / 377.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001728/0.2597, allocations: 154.9 kB / 377.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007096/0.2604, allocations: 198.2 kB / 378 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.2614, allocations: 0.7547 MB / 378.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/0.2615, allocations: 77.78 kB / 378.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.2616, allocations: 94.34 kB / 378.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.2631, allocations: 0.9429 MB / 379.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.2631, allocations: 12.2 kB / 379.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.013e-05/0.2632, allocations: 44.84 kB / 379.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.2633, allocations: 26.12 kB / 379.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.2645, allocations: 0.6476 MB / 380.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004463/0.269, allocations: 3.951 MB / 384.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.2696, allocations: 447.5 kB / 385 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005731/0.2702, allocations: 276.6 kB / 385.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.2703, allocations: 3.5 kB / 385.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.2703, allocations: 37.97 kB / 385.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.824e-06/0.2703, allocations: 0 / 385.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00263/0.2729, allocations: 1.541 MB / 386.8 MB, free: 4.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.273, allocations: 85.67 kB / 386.9 MB, free: 4.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00098/0.274, allocations: 0.8461 MB / 387.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.274, allocations: 35.92 kB / 387.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.2743, allocations: 0.5651 MB / 388.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.693e-05/0.2744, allocations: 167 kB / 388.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.2745, allocations: 128.8 kB / 388.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.131e-05/0.2746, allocations: 330.9 kB / 389 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.2749, allocations: 178.2 kB / 389.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004198/0.2753, allocations: 470.8 kB / 389.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007977/0.2761, allocations: 0.676 MB / 390.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.2762, allocations: 3.344 kB / 390.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001217/0.2774, allocations: 0.7849 MB / 391.1 MB, free: 1.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.2774, allocations: 10.41 kB / 391.1 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.2774, allocations: 17.38 kB / 391.1 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/0.2777, allocations: 76.97 kB / 391.2 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004914/0.2782, allocations: 160.8 kB / 391.3 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.2802, allocations: 3.147 MB / 394.5 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005376/0.2807, allocations: 42.39 kB / 394.5 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.2808, allocations: 36.53 kB / 394.5 MB, free: 14.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003459/0.2811, allocations: 262.4 kB / 394.8 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.2813, allocations: 89.84 kB / 394.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009525/0.2822, allocations: 0.5006 MB / 395.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2823, allocations: 8.594 kB / 395.4 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2823, allocations: 1.281 kB / 395.4 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.2823, allocations: 3.094 kB / 395.4 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.2844, allocations: 1.482 MB / 396.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.2844, allocations: 7.609 kB / 396.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.2848, allocations: 75.94 kB / 397 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001958/0.285, allocations: 74.7 kB / 397 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.285, allocations: 13.5 kB / 397.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002217/0.2872, allocations: 3.122 MB / 400.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2873, allocations: 1.5 kB / 400.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.2885, allocations: 0.7957 MB / 401 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.2888, allocations: 206.5 kB / 401.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.2889, allocations: 9.438 kB / 401.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004565/0.2894, allocations: 34.66 kB / 401.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.007e-05/0.2895, allocations: 39.64 kB / 401.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.2895, allocations: 14 kB / 401.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000758/0.2903, allocations: 0.5737 MB / 401.8 MB, free: 8.848 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2903, allocations: 0 / 401.8 MB, free: 8.848 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008418/0.2912, allocations: 212.7 kB / 402 MB, free: 8.824 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/0.2928, allocations: 1.373 MB / 403.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.294, allocations: 0.7146 MB / 404.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.294, allocations: 4.219 kB / 404.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006424/0.2947, allocations: 460.5 kB / 404.6 MB, free: 7.008 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.2961, allocations: 226.6 kB / 404.8 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.309, allocations: 8.004 MB / 412.8 MB, free: 132 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006488/0.3097, allocations: 1.012 MB / 413.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005093/0.3102, allocations: 107.3 kB / 413.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004651/0.3107, allocations: 387.3 kB / 414.3 MB, free: 14.6 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3107, allocations: 0 / 414.3 MB, free: 14.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04447/0.3551, allocations: 19.11 MB / 433.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.141/9.496, allocations: 9.312 kB / 433.4 MB, free: 11.8 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches