Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.001329/0.001329, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001487/0.001487, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.441/1.441, allocations: 207.6 MB / 235.3 MB, free: 10.01 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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001892/0.001892, allocations: 55.92 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3903, allocations: 49.16 MB / 396.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01564/0.4059, allocations: 11.77 MB / 408.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.4181, allocations: 3.234 MB / 411.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003878/0.422, allocations: 43.44 kB / 411.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003134/0.4251, allocations: 0.6798 MB / 412.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004732/0.4299, allocations: 0.7248 MB / 412.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001773/0.4316, allocations: 399 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007459/0.4391, allocations: 2.246 MB / 415.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001972/0.4411, allocations: 0.655 MB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003212/0.4443, allocations: 0.8687 MB / 417 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001943/0.4462, allocations: 0.907 MB / 417.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004397/0.4467, allocations: 221.3 kB / 418.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009015/0.4476, allocations: 259.1 kB / 418.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000599/0.4482, allocations: 430.8 kB / 418.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001841/0.45, allocations: 1.018 MB / 419.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00524/0.4552, allocations: 2.693 MB / 422.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-05/0.4552, allocations: 1.188 kB / 422.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4553, allocations: 0 / 422.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.838e-05/0.4553, allocations: 0 / 422.5 MB, free: 6.926 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005196/0.4605, allocations: 2.039 MB / 424.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.107e-05/0.4606, allocations: 13.02 kB / 424.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003075/0.4609, allocations: 225.5 kB / 424.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009811/0.4619, allocations: 269.1 kB / 425 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002311/0.4642, allocations: 0.9769 MB / 426 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.4643, allocations: 117.5 kB / 426.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002561/0.4646, allocations: 157 kB / 426.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003161/0.4677, allocations: 1.486 MB / 427.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.863e-05/0.4678, allocations: 11.38 kB / 427.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.4679, allocations: 66.72 kB / 427.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.482e-05/0.468, allocations: 42.78 kB / 427.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002204/0.4702, allocations: 0.9741 MB / 428.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01101/0.4812, allocations: 6.376 MB / 435.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009503/0.4821, allocations: 372.2 kB / 435.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.4826, allocations: 202.1 kB / 435.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-05/0.4827, allocations: 8.422 kB / 435.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006347/0.4833, allocations: 276.8 kB / 436.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.407e-06/0.4833, allocations: 0 / 436.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.00416/0.4875, allocations: 1.56 MB / 437.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.4876, allocations: 166.7 kB / 437.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.4895, allocations: 1.269 MB / 439 MB, free: 7.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.4896, allocations: 41.64 kB / 439.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009137/0.4905, allocations: 0.8972 MB / 440 MB, free: 6.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.4907, allocations: 214.2 kB / 440.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003573/0.4911, allocations: 222.8 kB / 440.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.4913, allocations: 357.9 kB / 440.8 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.4917, allocations: 226.5 kB / 441 MB, free: 5.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.4928, allocations: 0.8034 MB / 441.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.4944, allocations: 1.117 MB / 442.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.4944, allocations: 4 kB / 442.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002202/0.4966, allocations: 1.176 MB / 444.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.227e-05/0.4967, allocations: 49.69 kB / 444.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/0.4967, allocations: 23.94 kB / 444.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003109/0.497, allocations: 57.7 kB / 444.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008478/0.4979, allocations: 272 kB / 444.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.5005, allocations: 2.566 MB / 447 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.5019, allocations: 67.88 kB / 447.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-05/0.502, allocations: 60 kB / 447.2 MB, free: 14.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008768/0.5029, allocations: 365.3 kB / 447.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.5031, allocations: 143 kB / 447.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.5042, allocations: 0.5435 MB / 448.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.5042, allocations: 4 kB / 448.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5042, allocations: 0 / 448.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.5042, allocations: 11.98 kB / 448.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.5075, allocations: 1.83 MB / 450 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.5075, allocations: 4.469 kB / 450.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004294/0.5079, allocations: 107.8 kB / 450.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/0.508, allocations: 41.69 kB / 450.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.5081, allocations: 20 kB / 450.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002501/0.5106, allocations: 2.55 MB / 452.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5106, allocations: 4 kB / 452.8 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.5123, allocations: 0.9343 MB / 453.7 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005326/0.5128, allocations: 187 kB / 453.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.5129, allocations: 16 kB / 453.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005276/0.5135, allocations: 31.97 kB / 453.9 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.5136, allocations: 63.58 kB / 454 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.5136, allocations: 19.94 kB / 454 MB, free: 7.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00146/0.5151, allocations: 0.8461 MB / 454.9 MB, free: 6.754 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5151, allocations: 0 / 454.9 MB, free: 6.754 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001365/0.5164, allocations: 308 kB / 455.2 MB, free: 6.453 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.002147/0.5186, allocations: 1.495 MB / 456.7 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.5204, allocations: 0.8956 MB / 457.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.5204, allocations: 2 kB / 457.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007527/0.5212, allocations: 465.9 kB / 458 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.5227, allocations: 340.9 kB / 458.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01888/0.5416, allocations: 10.93 MB / 469.3 MB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.5428, allocations: 1.178 MB / 470.5 MB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007374/0.5436, allocations: 167.3 kB / 470.6 MB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008671/0.5444, allocations: 0.5735 MB / 471.2 MB, free: 5.441 MB / 382.1 MB Notification: Performance of SimCode: time 2.093e-06/0.5444, allocations: 0 / 471.2 MB, free: 5.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08682/0.6313, allocations: 28.77 MB / 500 MB, free: 8.574 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.54, allocations: 15.8 kB / 500 MB, free: 8.559 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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: 19.28021148010157]