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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 112.4 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 204.7 kB / 24.49 MB, free: 4.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 56.2 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2543, allocations: 49.16 MB / 396.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01005/0.2644, allocations: 12.18 MB / 408.5 MB, free: 412 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006671/0.271, allocations: 3.326 MB / 411.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.2727, allocations: 39.34 kB / 411.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001984/0.2747, allocations: 0.6991 MB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002696/0.2774, allocations: 0.7743 MB / 413.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.2784, allocations: 418.8 kB / 413.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003074/0.2815, allocations: 2.419 MB / 416.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001274/0.2828, allocations: 0.6548 MB / 416.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.2849, allocations: 0.9304 MB / 417.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.2861, allocations: 0.9871 MB / 418.8 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002552/0.2864, allocations: 230.5 kB / 419 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004969/0.2869, allocations: 262.4 kB / 419.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003651/0.2872, allocations: 468.5 kB / 419.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.2883, allocations: 1.074 MB / 420.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003226/0.2915, allocations: 2.845 MB / 423.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2915, allocations: 1.25 kB / 423.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2915, allocations: 0 / 423.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.329e-05/0.2916, allocations: 0 / 423.6 MB, free: 6.207 MB / 334.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.00401/0.2956, allocations: 2.127 MB / 425.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.2956, allocations: 17.86 kB / 425.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/0.2959, allocations: 229.8 kB / 426 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009019/0.2968, allocations: 287.1 kB / 426.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.2987, allocations: 1.053 MB / 427.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.556e-05/0.2988, allocations: 121.3 kB / 427.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001981/0.299, allocations: 156.3 kB / 427.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002546/0.3015, allocations: 1.508 MB / 429.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.318e-05/0.3016, allocations: 15.88 kB / 429.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.3017, allocations: 64 kB / 429.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.3017, allocations: 36 kB / 429.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.3038, allocations: 1.045 MB / 430.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008734/0.3126, allocations: 6.101 MB / 436.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.3141, allocations: 0.5733 MB / 437 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008931/0.315, allocations: 434.6 kB / 437.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.315, allocations: 4.656 kB / 437.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.315, allocations: 43.22 kB / 437.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.425e-06/0.315, allocations: 0 / 437.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005029/0.3201, allocations: 2.169 MB / 439.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/0.3201, allocations: 115.5 kB / 439.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.322, allocations: 1.314 MB / 441 MB, free: 6.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.228e-05/0.322, allocations: 37.7 kB / 441.1 MB, free: 6.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006878/0.3227, allocations: 0.8749 MB / 441.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/0.323, allocations: 273.7 kB / 442.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002935/0.3232, allocations: 202.8 kB / 442.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3234, allocations: 345.9 kB / 442.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/0.324, allocations: 290.5 kB / 443 MB, free: 4.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009734/0.325, allocations: 0.7346 MB / 443.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.3266, allocations: 1.088 MB / 444.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3266, allocations: 4 kB / 444.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002442/0.329, allocations: 1.265 MB / 446.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.329, allocations: 12 kB / 446.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.3291, allocations: 16 kB / 446.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/0.3296, allocations: 138.6 kB / 446.3 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008382/0.3304, allocations: 255.6 kB / 446.5 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/0.3345, allocations: 4.324 MB / 450.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.3356, allocations: 59.86 kB / 450.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-05/0.3356, allocations: 52 kB / 451 MB, free: 11.36 MB / 366.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.0005958/0.3362, allocations: 357.5 kB / 451.3 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002134/0.3365, allocations: 155.1 kB / 451.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.3382, allocations: 0.8256 MB / 452.3 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3382, allocations: 7.938 kB / 452.3 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3382, allocations: 7.984 kB / 452.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.3382, allocations: 0 / 452.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.3423, allocations: 2.289 MB / 454.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3423, allocations: 4 kB / 454.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005753/0.3429, allocations: 131.8 kB / 454.7 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004463/0.3433, allocations: 134.7 kB / 454.8 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.3434, allocations: 16 kB / 454.9 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004415/0.3478, allocations: 4.488 MB / 459.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3478, allocations: 7.938 kB / 459.4 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.3503, allocations: 1.301 MB / 460.7 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006562/0.3509, allocations: 211 kB / 460.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.3511, allocations: 20 kB / 460.9 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000634/0.3518, allocations: 39.97 kB / 460.9 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.3519, allocations: 68.27 kB / 461 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/0.3519, allocations: 24.17 kB / 461 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00133/0.3533, allocations: 0.8858 MB / 461.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3533, allocations: 0 / 461.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001274/0.3545, allocations: 324 kB / 462.2 MB, free: 15.52 MB / 382.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.002853/0.3574, allocations: 1.889 MB / 464.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.3595, allocations: 1.086 MB / 465.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.3596, allocations: 4 kB / 465.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.3607, allocations: 0.6831 MB / 465.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/0.3626, allocations: 364.9 kB / 466.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/0.3831, allocations: 11.72 MB / 478 MB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.3842, allocations: 1.213 MB / 479.2 MB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007117/0.3849, allocations: 175.6 kB / 479.3 MB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/0.3857, allocations: 0.6125 MB / 480 MB, free: 12.89 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3857, allocations: 4 kB / 480 MB, free: 12.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08826/0.474, allocations: 32.2 MB / 0.5002 GB, free: 12.58 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.62/16.1, allocations: 7.906 kB / 0.5002 GB, free: 12.57 MB / 430.1 MB " [Timeout remaining time 644] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.00898607610725]