Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.002029/0.002029, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.002268/0.002268, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 55.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1166, allocations: 53.32 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.2866/0.4032, allocations: 8.129 MB / 434.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00547/0.4087, allocations: 2.675 MB / 437.1 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.4098, allocations: 27.88 kB / 437.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.4114, allocations: 0.57 MB / 437.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.4129, allocations: 0.4956 MB / 438.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007164/0.4137, allocations: 246.2 kB / 438.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.4162, allocations: 1.479 MB / 439.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008596/0.417, allocations: 406.6 kB / 440.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.4183, allocations: 0.5747 MB / 440.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.4195, allocations: 0.5972 MB / 441.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002418/0.4198, allocations: 142.5 kB / 441.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000475/0.4202, allocations: 175.4 kB / 441.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.4205, allocations: 281.8 kB / 442.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006509/0.4211, allocations: 0.6558 MB / 442.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003171/0.4243, allocations: 1.734 MB / 444.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4243, allocations: 0 / 444.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4243, allocations: 0.5 kB / 444.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.976e-05/0.4243, allocations: 0.5312 kB / 444.5 MB, free: 2.492 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003356/0.4277, allocations: 1.48 MB / 446 MB, free: 1.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.4278, allocations: 10.28 kB / 446 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.4279, allocations: 151.8 kB / 446.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007994/0.4287, allocations: 190.5 kB / 446.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.4303, allocations: 0.7485 MB / 447.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.339e-05/0.4304, allocations: 73.09 kB / 447.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.4305, allocations: 100.2 kB / 447.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.4324, allocations: 0.9384 MB / 448.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.4324, allocations: 2.469 kB / 448.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-05/0.4325, allocations: 45.56 kB / 448.2 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-05/0.4325, allocations: 25.2 kB / 448.2 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.434, allocations: 0.6337 MB / 448.9 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006911/0.4409, allocations: 3.891 MB / 452.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.4417, allocations: 427.1 kB / 453.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006334/0.4423, allocations: 256 kB / 453.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.136e-05/0.4424, allocations: 8.328 kB / 453.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.4424, allocations: 38.66 kB / 453.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.054e-06/0.4424, allocations: 0 / 453.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.003405/0.4458, allocations: 1.403 MB / 454.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.4459, allocations: 80.89 kB / 455 MB, free: 12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.4472, allocations: 0.8293 MB / 455.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.4472, allocations: 35.08 kB / 455.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004637/0.4477, allocations: 0.57 MB / 456.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.4478, allocations: 167.8 kB / 456.6 MB, free: 11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003266/0.4482, allocations: 130.5 kB / 456.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4483, allocations: 333.8 kB / 457 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/0.4487, allocations: 164.7 kB / 457.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000713/0.4494, allocations: 463.7 kB / 457.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.4504, allocations: 0.6625 MB / 458.3 MB, free: 9.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.4504, allocations: 2.281 kB / 458.3 MB, free: 9.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001572/0.452, allocations: 0.7658 MB / 459.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.452, allocations: 9.75 kB / 459.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.452, allocations: 11.94 kB / 459.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.4523, allocations: 93.11 kB / 459.2 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005076/0.4528, allocations: 149.2 kB / 459.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003328/0.4562, allocations: 3.145 MB / 462.5 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008226/0.457, allocations: 36.38 kB / 462.5 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.595e-05/0.4571, allocations: 32.16 kB / 462.5 MB, free: 5.977 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000519/0.4576, allocations: 264.8 kB / 462.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.4577, allocations: 89.34 kB / 462.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.4589, allocations: 490.6 kB / 463.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4589, allocations: 4.656 kB / 463.4 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4589, allocations: 3.969 kB / 463.4 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4589, allocations: 3.984 kB / 463.4 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.4617, allocations: 1.439 MB / 464.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4617, allocations: 2.094 kB / 464.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.462, allocations: 66.47 kB / 464.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002416/0.4622, allocations: 76.73 kB / 464.9 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.4623, allocations: 7.531 kB / 464.9 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002816/0.4651, allocations: 3.129 MB / 468.1 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4651, allocations: 5.938 kB / 468.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.4667, allocations: 0.7682 MB / 468.9 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006264/0.4674, allocations: 206.1 kB / 469.1 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/0.4676, allocations: 12.52 kB / 469.1 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007047/0.4684, allocations: 26.89 kB / 469.1 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.4685, allocations: 42.02 kB / 469.1 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/0.4685, allocations: 14.19 kB / 469.1 MB, free: 360 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001128/0.4696, allocations: 0.5607 MB / 469.7 MB, free: 32 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4696, allocations: 1.094 kB / 469.7 MB, free: 32 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001567/0.4712, allocations: 208.7 kB / 469.9 MB, free: 8 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (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.002309/0.4735, allocations: 1.343 MB / 471.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.4751, allocations: 0.6683 MB / 471.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.4751, allocations: 0 / 471.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008592/0.476, allocations: 442.8 kB / 472.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/0.4774, allocations: 234.5 kB / 472.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.4934, allocations: 7.318 MB / 479.9 MB, free: 9.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001277/0.4947, allocations: 0.9992 MB / 480.9 MB, free: 8.273 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006557/0.4953, allocations: 107.2 kB / 481 MB, free: 8.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006603/0.496, allocations: 374.8 kB / 481.4 MB, free: 7.902 MB / 382.1 MB Notification: Performance of SimCode: time 2.084e-06/0.496, allocations: 4 kB / 481.4 MB, free: 7.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.076/0.572, allocations: 19.23 MB / 0.4889 GB, free: 4.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.59, allocations: 3.438 kB / 0.4889 GB, free: 4.98 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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: 16.5765805139672]