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.001752/0.001752, allocations: 118 kB / 18.45 MB, free: 4.566 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.002212/0.002212, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.436/1.436, allocations: 207.6 MB / 231.8 MB, free: 4.062 MB / 174.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.001832/0.001832, allocations: 51.94 kB / 342.3 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09948, allocations: 49.13 MB / 391.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01468/0.1142, allocations: 12.14 MB / 403.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006853/0.121, allocations: 3.328 MB / 406.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.1226, allocations: 39.88 kB / 406.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002013/0.1246, allocations: 0.6907 MB / 407.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002432/0.127, allocations: 0.7833 MB / 408.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009204/0.1279, allocations: 403.5 kB / 408.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003183/0.1311, allocations: 2.421 MB / 411.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.1323, allocations: 0.6533 MB / 411.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.1338, allocations: 0.9301 MB / 412.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/0.1353, allocations: 0.98 MB / 413.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003816/0.1357, allocations: 232 kB / 414 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005537/0.1362, allocations: 276 kB / 414.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004305/0.1367, allocations: 458.3 kB / 414.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.1378, allocations: 1.077 MB / 415.8 MB, free: 148 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003329/0.1412, allocations: 2.837 MB / 418.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.1412, allocations: 0 / 418.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1412, allocations: 0 / 418.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.762e-05/0.1412, allocations: 4 kB / 418.6 MB, free: 13.29 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004747/0.146, allocations: 2.213 MB / 420.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.146, allocations: 15.97 kB / 420.9 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002936/0.1463, allocations: 216.1 kB / 421.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000972/0.1473, allocations: 287.5 kB / 421.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.1495, allocations: 1.143 MB / 422.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.1496, allocations: 123.2 kB / 422.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002808/0.1498, allocations: 156 kB / 422.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003018/0.1529, allocations: 1.5 MB / 424.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.147e-05/0.1529, allocations: 15.88 kB / 424.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001314/0.1531, allocations: 64 kB / 424.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-05/0.1531, allocations: 44 kB / 424.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00229/0.1554, allocations: 1.045 MB / 425.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009571/0.165, allocations: 6.247 MB / 431.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.1666, allocations: 0.5773 MB / 432.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009694/0.1676, allocations: 426.2 kB / 432.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.399e-05/0.1676, allocations: 8.562 kB / 432.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.1676, allocations: 39.12 kB / 432.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.434e-06/0.1676, allocations: 4 kB / 432.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005461/0.1731, allocations: 2.387 MB / 435.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.1732, allocations: 115.4 kB / 435.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.1752, allocations: 1.302 MB / 436.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.499e-05/0.1753, allocations: 41.7 kB / 436.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007561/0.176, allocations: 0.871 MB / 437.5 MB, free: 9.828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.1763, allocations: 273.7 kB / 437.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003279/0.1766, allocations: 206.8 kB / 437.9 MB, free: 9.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.1768, allocations: 353.9 kB / 438.3 MB, free: 9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006367/0.1775, allocations: 282.5 kB / 438.5 MB, free: 8.723 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.1785, allocations: 0.7342 MB / 439.3 MB, free: 7.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001794/0.1803, allocations: 1.084 MB / 440.4 MB, free: 6.484 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.1803, allocations: 4 kB / 440.4 MB, free: 6.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002741/0.1831, allocations: 1.276 MB / 441.6 MB, free: 5.188 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.1831, allocations: 12 kB / 441.7 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/0.1831, allocations: 16 kB / 441.7 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005803/0.1837, allocations: 131 kB / 441.8 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008908/0.1846, allocations: 259.5 kB / 442.1 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004728/0.1893, allocations: 4.642 MB / 446.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.1905, allocations: 63.86 kB / 446.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.43e-05/0.1906, allocations: 52 kB / 446.8 MB, free: 15.59 MB / 382.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.0006533/0.1913, allocations: 361.4 kB / 447.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.1915, allocations: 143.1 kB / 447.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001952/0.1934, allocations: 0.8256 MB / 448.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.1935, allocations: 15.92 kB / 448.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1935, allocations: 0 / 448.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1935, allocations: 0 / 448.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004209/0.1977, allocations: 2.323 MB / 450.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.1977, allocations: 4 kB / 450.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006099/0.1983, allocations: 131.8 kB / 450.6 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004746/0.1988, allocations: 139 kB / 450.7 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.222e-05/0.1988, allocations: 23.98 kB / 450.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004806/0.2036, allocations: 4.791 MB / 455.5 MB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.2036, allocations: 4 kB / 455.5 MB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002686/0.2063, allocations: 1.293 MB / 456.8 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005469/0.2069, allocations: 296 kB / 457.1 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.207, allocations: 20 kB / 457.2 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.2077, allocations: 39.91 kB / 457.2 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.2078, allocations: 64.42 kB / 457.3 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.785e-05/0.2078, allocations: 27.98 kB / 457.3 MB, free: 4.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001447/0.2093, allocations: 0.878 MB / 458.2 MB, free: 3.566 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2093, allocations: 0 / 458.2 MB, free: 3.566 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00132/0.2106, allocations: 328 kB / 458.5 MB, free: 3.246 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.002964/0.2136, allocations: 1.877 MB / 460.4 MB, free: 1.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002171/0.2158, allocations: 1.089 MB / 461.4 MB, free: 164 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2158, allocations: 0 / 461.4 MB, free: 164 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1748/0.3906, allocations: 0.6787 MB / 462.1 MB, free: 63.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.3926, allocations: 376.7 kB / 462.5 MB, free: 63.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/0.4118, allocations: 11.71 MB / 474.2 MB, free: 58.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009059/0.4128, allocations: 1.217 MB / 475.4 MB, free: 57.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008806/0.4136, allocations: 173 kB / 475.6 MB, free: 57.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007184/0.4144, allocations: 0.6098 MB / 476.2 MB, free: 57.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4144, allocations: 1.375 kB / 476.2 MB, free: 57.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07417/0.4885, allocations: 31.44 MB / 0.4957 GB, free: 30.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.03, allocations: 7.938 kB / 0.4958 GB, free: 30.82 MB / 382.1 MB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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] "Error: Could not read variable loadInertia1.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.341748671999085]