Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 195.7 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.7 MB / 253.3 MB, free: 13.07 MB / 206.1 MB " [Timeout remaining time 178] 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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 43.92 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3218, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01136/0.3332, allocations: 8.037 MB / 431.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006936/0.3401, allocations: 2.633 MB / 434.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.3413, allocations: 23.94 kB / 434.1 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.3432, allocations: 0.524 MB / 434.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.345, allocations: 440.7 kB / 435.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006274/0.3456, allocations: 211.6 kB / 435.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.3473, allocations: 1.236 MB / 436.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006849/0.348, allocations: 362.5 kB / 436.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007172/0.3487, allocations: 0.4942 MB / 437.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007489/0.3495, allocations: 0.5211 MB / 437.9 MB, free: 88 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.3496, allocations: 116 kB / 438 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.3499, allocations: 147.9 kB / 438.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.3502, allocations: 239.1 kB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005587/0.3507, allocations: 0.5599 MB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002012/0.3527, allocations: 1.468 MB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.3527, allocations: 4 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3527, allocations: 0 / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.3528, allocations: 4 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002522/0.3553, allocations: 1.252 MB / 441.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3553, allocations: 8.031 kB / 441.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.01e-05/0.3554, allocations: 30.19 kB / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000175/0.3556, allocations: 127.5 kB / 441.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005452/0.3561, allocations: 160.1 kB / 442 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3573, allocations: 0.5726 MB / 442.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.136e-05/0.3574, allocations: 73.88 kB / 442.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.3575, allocations: 91.89 kB / 442.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.359, allocations: 0.8223 MB / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.359, allocations: 3.938 kB / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.13e-05/0.3591, allocations: 32 kB / 443.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.3591, allocations: 20 kB / 443.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.3602, allocations: 0.5426 MB / 444.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005003/0.3652, allocations: 3.468 MB / 447.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.3658, allocations: 230.7 kB / 447.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.3661, allocations: 108.8 kB / 447.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3661, allocations: 0 / 447.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.3661, allocations: 38.56 kB / 448 MB, free: 5.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.3661, allocations: 0 / 448 MB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002259/0.3684, allocations: 0.943 MB / 448.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/0.3685, allocations: 77.11 kB / 449 MB, free: 4.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.3696, allocations: 0.7624 MB / 449.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.3696, allocations: 29.7 kB / 449.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.3701, allocations: 0.5306 MB / 450.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.3702, allocations: 119 kB / 450.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.3704, allocations: 118.2 kB / 450.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002228/0.3706, allocations: 382.8 kB / 450.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/0.3709, allocations: 129.2 kB / 451 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005852/0.3715, allocations: 454.2 kB / 451.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009369/0.3724, allocations: 0.614 MB / 452.1 MB, free: 1.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3724, allocations: 4 kB / 452.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001195/0.3736, allocations: 0.6459 MB / 452.8 MB, free: 464 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.3737, allocations: 11.94 kB / 452.8 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.3737, allocations: 12.91 kB / 452.8 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.3738, allocations: 36.84 kB / 452.8 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.3743, allocations: 151.8 kB / 453 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.3756, allocations: 1.283 MB / 454.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004895/0.3761, allocations: 43.94 kB / 454.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/0.3761, allocations: 35.94 kB / 454.3 MB, free: 14.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000388/0.3765, allocations: 245.6 kB / 454.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3766, allocations: 83.42 kB / 454.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007377/0.3774, allocations: 329.9 kB / 455 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3774, allocations: 4 kB / 455 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3774, allocations: 7.938 kB / 455 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3774, allocations: 4 kB / 455 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.3792, allocations: 1.085 MB / 456.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.3792, allocations: 4 kB / 456.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.3795, allocations: 63.91 kB / 456.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.944e-05/0.3795, allocations: 20.78 kB / 456.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.3796, allocations: 8 kB / 456.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.3807, allocations: 1.276 MB / 457.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3807, allocations: 4.031 kB / 457.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.3817, allocations: 0.5823 MB / 458 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.3819, allocations: 99.53 kB / 458.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/0.382, allocations: 8 kB / 458.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.3823, allocations: 23.97 kB / 458.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.3824, allocations: 23.97 kB / 458.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.3824, allocations: 11.94 kB / 458.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007393/0.3832, allocations: 0.5186 MB / 458.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3832, allocations: 3.938 kB / 458.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007182/0.3839, allocations: 175.9 kB / 458.9 MB, free: 9.953 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001494/0.3854, allocations: 1.125 MB / 460 MB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.3864, allocations: 476.7 kB / 460.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3864, allocations: 192 / 460.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.3868, allocations: 240.4 kB / 460.7 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009867/0.3878, allocations: 187 kB / 460.9 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.3979, allocations: 6.53 MB / 467.4 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006571/0.3986, allocations: 0.9487 MB / 468.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.3989, allocations: 98.17 kB / 468.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004253/0.3994, allocations: 315.3 kB / 468.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.954e-06/0.3994, allocations: 3.938 kB / 468.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04937/0.4487, allocations: 16.63 MB / 485.4 MB, free: 15.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.92, allocations: 6.688 kB / 485.4 MB, free: 15.14 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.472710594011005]