Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_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.0008595/0.0008596, allocations: 92.75 kB / 16.65 MB, free: 6.535 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.0009957/0.0009958, allocations: 172.8 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002551/0.0002552, allocations: 12.7 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09434/0.09462, allocations: 50.41 MB / 351.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01199/0.1067, allocations: 11.47 MB / 363.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006433/0.1131, allocations: 3.222 MB / 366.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.1149, allocations: 31.94 kB / 366.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.1172, allocations: 0.5787 MB / 367.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003026/0.1202, allocations: 0.6245 MB / 367.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1215, allocations: 355.7 kB / 368.2 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.1248, allocations: 2.28 MB / 370.5 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.1261, allocations: 0.8466 MB / 371.4 MB, free: 88 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2069/0.333, allocations: 0.7437 MB / 372.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001885/0.3349, allocations: 0.8445 MB / 372.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006876/0.3357, allocations: 107.1 kB / 373 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.3367, allocations: 145.3 kB / 373.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005324/0.3373, allocations: 323.4 kB / 373.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001933/0.3392, allocations: 0.9576 MB / 374.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.3427, allocations: 2.651 MB / 377.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3427, allocations: 0 / 377.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3427, allocations: 0.7812 kB / 377.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.024e-05/0.3428, allocations: 3.062 kB / 377.1 MB, free: 11.01 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.002943/0.3457, allocations: 1.839 MB / 379 MB, free: 10.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.3458, allocations: 9.625 kB / 379 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003018/0.3461, allocations: 223.4 kB / 379.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008312/0.3469, allocations: 284 kB / 379.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.3485, allocations: 1.105 MB / 380.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.752e-05/0.3486, allocations: 116 kB / 380.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.3488, allocations: 161.3 kB / 380.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/0.3514, allocations: 1.523 MB / 382.4 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.842e-05/0.3514, allocations: 12.42 kB / 382.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.3515, allocations: 62.41 kB / 382.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.535e-05/0.3516, allocations: 38.16 kB / 382.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/0.3536, allocations: 1.072 MB / 383.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006815/0.3604, allocations: 6.316 MB / 389.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.362, allocations: 0.6313 MB / 390.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008958/0.3629, allocations: 457.3 kB / 390.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.3629, allocations: 17.3 kB / 390.9 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.363, allocations: 42.09 kB / 391 MB, free: 4.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.757e-06/0.363, allocations: 0 / 391 MB, free: 4.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.00501/0.368, allocations: 2.464 MB / 393.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.368, allocations: 114.8 kB / 393.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/0.3697, allocations: 1.301 MB / 394.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.3698, allocations: 36.77 kB / 394.9 MB, free: 2.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/0.3702, allocations: 0.8527 MB / 395.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3703, allocations: 257.9 kB / 396 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.3705, allocations: 94.98 kB / 396.1 MB, free: 1.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.967e-05/0.3705, allocations: 355.6 kB / 396.4 MB, free: 0.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005423/0.3711, allocations: 294.4 kB / 396.7 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007661/0.3719, allocations: 0.7495 MB / 397.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/0.3735, allocations: 1.113 MB / 398.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3735, allocations: 6.5 kB / 398.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002146/0.3757, allocations: 1.301 MB / 399.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.3757, allocations: 10.88 kB / 399.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.3757, allocations: 14.25 kB / 399.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000495/0.3762, allocations: 145.4 kB / 400.1 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/0.377, allocations: 263.1 kB / 400.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003711/0.3807, allocations: 4.329 MB / 404.7 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009913/0.3817, allocations: 70.31 kB / 404.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.659e-05/0.3818, allocations: 57.05 kB / 404.8 MB, free: 9.91 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.0006549/0.3825, allocations: 350.5 kB / 405.1 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.3827, allocations: 138.8 kB / 405.3 MB, free: 9.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.3845, allocations: 0.8714 MB / 406.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3845, allocations: 10.19 kB / 406.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3845, allocations: 0 / 406.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3845, allocations: 3.984 kB / 406.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/0.3885, allocations: 2.376 MB / 408.5 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.3886, allocations: 4 kB / 408.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005511/0.3891, allocations: 137.6 kB / 408.7 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004208/0.3895, allocations: 142.5 kB / 408.8 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/0.3896, allocations: 20 kB / 408.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00402/0.3936, allocations: 4.449 MB / 413.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3936, allocations: 7.469 kB / 413.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.396, allocations: 1.356 MB / 414.6 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000451/0.3964, allocations: 283.4 kB / 414.9 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/0.3966, allocations: 16 kB / 414.9 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006733/0.3973, allocations: 47.97 kB / 415 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.3975, allocations: 59.8 kB / 415 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.98e-05/0.3975, allocations: 24 kB / 415.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001381/0.3989, allocations: 0.8742 MB / 415.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3989, allocations: 4 kB / 415.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001237/0.4001, allocations: 340 kB / 416.3 MB, free: 14.68 MB / 334.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.00295/0.4031, allocations: 1.931 MB / 418.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.405, allocations: 1.137 MB / 419.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.405, allocations: 4 kB / 419.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.406, allocations: 0.7241 MB / 420.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.4083, allocations: 337.3 kB / 420.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0231/0.4314, allocations: 13.95 MB / 434.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009905/0.4325, allocations: 1.217 MB / 435.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007795/0.4333, allocations: 171.8 kB / 435.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007832/0.4341, allocations: 0.6086 MB / 436.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4341, allocations: 0 / 436.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3339/0.768, allocations: 29.16 MB / 465.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003088/0.7684, allocations: 261.6 kB / 465.7 MB, free: 12.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.174/3.942, allocations: 0 / 465.7 MB, free: 12.51 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches