Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009912/0.0009912, allocations: 112.2 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 48.14 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07823/0.07955, allocations: 46.63 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01159/0.09117, allocations: 12 MB / 338.9 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005085/0.09629, allocations: 3.262 MB / 342.1 MB, free: 5.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.09757, allocations: 35.94 kB / 342.2 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001786/0.09937, allocations: 0.5827 MB / 342.8 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001943/0.1013, allocations: 0.6322 MB / 343.4 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007522/0.1021, allocations: 351.8 kB / 343.7 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00233/0.1044, allocations: 2.409 MB / 346.2 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.1056, allocations: 0.9969 MB / 347.1 MB, free: 292 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009882/0.1066, allocations: 0.9026 MB / 348 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009298/0.1075, allocations: 0.9839 MB / 349 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.1078, allocations: 228 kB / 349.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004364/0.1082, allocations: 272 kB / 349.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002947/0.1085, allocations: 454.4 kB / 350 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008899/0.1094, allocations: 1.081 MB / 351 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002211/0.1116, allocations: 2.788 MB / 353.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1116, allocations: 0 / 353.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1117, allocations: 4 kB / 353.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.1117, allocations: 0 / 353.8 MB, free: 9.57 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003237/0.1149, allocations: 2.168 MB / 356 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.115, allocations: 8.031 kB / 356 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002218/0.1152, allocations: 220.1 kB / 356.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008322/0.116, allocations: 282.3 kB / 356.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.1176, allocations: 1.107 MB / 357.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.517e-05/0.1177, allocations: 119.2 kB / 357.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001806/0.1178, allocations: 155.9 kB / 357.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.1202, allocations: 1.504 MB / 359.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.273e-05/0.1202, allocations: 11.89 kB / 359.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.1204, allocations: 60 kB / 359.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-05/0.1204, allocations: 44 kB / 359.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/0.1223, allocations: 1.049 MB / 360.5 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006995/0.1293, allocations: 6.284 MB / 366.8 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.1308, allocations: 0.623 MB / 367.5 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000814/0.1316, allocations: 466.2 kB / 367.9 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.1317, allocations: 8.547 kB / 367.9 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1317, allocations: 43.12 kB / 368 MB, free: 10.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.545e-06/0.1317, allocations: 0 / 368 MB, free: 10.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.00447/0.1362, allocations: 2.368 MB / 370.3 MB, free: 8.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.1362, allocations: 115.5 kB / 370.4 MB, free: 8.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.1378, allocations: 1.31 MB / 371.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.1378, allocations: 37.7 kB / 371.8 MB, free: 6.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/0.1383, allocations: 0.8492 MB / 372.6 MB, free: 6.105 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.1385, allocations: 260.3 kB / 372.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/0.1388, allocations: 206.6 kB / 373.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1389, allocations: 349.9 kB / 373.4 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005308/0.1394, allocations: 294.4 kB / 373.7 MB, free: 5.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007611/0.1402, allocations: 0.7342 MB / 374.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.1415, allocations: 1.088 MB / 375.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.1416, allocations: 4 kB / 375.5 MB, free: 2.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002103/0.1437, allocations: 1.264 MB / 376.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.1437, allocations: 8 kB / 376.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.1437, allocations: 16 kB / 376.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004655/0.1442, allocations: 142.5 kB / 377 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007835/0.145, allocations: 247.6 kB / 377.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1224/0.2674, allocations: 4.638 MB / 381.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.2686, allocations: 60.31 kB / 381.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.09e-05/0.2687, allocations: 50.45 kB / 382 MB, free: 47.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005364/0.2692, allocations: 360.8 kB / 382.3 MB, free: 47.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.2694, allocations: 139.1 kB / 382.4 MB, free: 47.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/0.2712, allocations: 0.832 MB / 383.3 MB, free: 47.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.2712, allocations: 7.344 kB / 383.3 MB, free: 47.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.2712, allocations: 1.094 kB / 383.3 MB, free: 47.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.2712, allocations: 7.609 kB / 383.3 MB, free: 47.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/0.2746, allocations: 2.328 MB / 385.6 MB, free: 46.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.2746, allocations: 4 kB / 385.6 MB, free: 46.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/0.2752, allocations: 127.7 kB / 385.8 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004303/0.2756, allocations: 134.2 kB / 385.9 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.2757, allocations: 21.23 kB / 385.9 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/0.2787, allocations: 4.786 MB / 390.7 MB, free: 41.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.2787, allocations: 12.31 kB / 390.7 MB, free: 41.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.2807, allocations: 1.292 MB / 392 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003836/0.2811, allocations: 284.5 kB / 392.3 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.2813, allocations: 25.89 kB / 392.3 MB, free: 40.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/0.2819, allocations: 35.53 kB / 392.3 MB, free: 40.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.282, allocations: 64.39 kB / 392.4 MB, free: 40.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.282, allocations: 27.56 kB / 392.4 MB, free: 40.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.2832, allocations: 0.8754 MB / 393.3 MB, free: 40.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.2832, allocations: 0 / 393.3 MB, free: 40.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001071/0.2843, allocations: 331.4 kB / 393.6 MB, free: 40.31 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002232/0.2865, allocations: 1.877 MB / 395.5 MB, free: 39.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.2883, allocations: 1.15 MB / 396.6 MB, free: 38.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2883, allocations: 1.156 kB / 396.7 MB, free: 38.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/0.2892, allocations: 0.7066 MB / 397.4 MB, free: 37.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.2908, allocations: 364.3 kB / 397.7 MB, free: 37.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/0.3067, allocations: 13.66 MB / 411.4 MB, free: 28.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.3072, allocations: 1.217 MB / 412.6 MB, free: 27.31 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000643/0.3079, allocations: 172.6 kB / 412.8 MB, free: 27.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005278/0.3084, allocations: 0.6092 MB / 413.4 MB, free: 26.53 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3084, allocations: 0 / 413.4 MB, free: 26.53 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04588/0.3543, allocations: 30.29 MB / 443.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/0.3545, allocations: 255.2 kB / 443.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/2.726, allocations: 8.062 kB / 443.9 MB, free: 11.91 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches