Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.0008648/0.0008648, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000892/0.000892, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8751/0.8751, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.144e-05/1.293e-05, allocations: 11.77 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005153/0.005166, allocations: 6.374 MB / 330.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002971/0.008137, allocations: 2.224 MB / 333.2 MB, free: 7.277 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003987/0.008535, allocations: 23.88 kB / 333.2 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009384/0.009474, allocations: 476.9 kB / 333.7 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006072/0.01008, allocations: 428.6 kB / 334.1 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.01036, allocations: 211.7 kB / 334.3 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009011/0.01127, allocations: 1.252 MB / 335.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.01166, allocations: 321.1 kB / 335.9 MB, free: 4.562 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007029/0.01236, allocations: 0.7053 MB / 336.6 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.01268, allocations: 358.9 kB / 336.9 MB, free: 3.504 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.141e-05/0.01277, allocations: 116 kB / 337 MB, free: 3.391 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.01295, allocations: 140 kB / 337.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.01306, allocations: 235.1 kB / 337.4 MB, free: 3.023 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.0133, allocations: 387 kB / 337.8 MB, free: 2.645 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009895/0.01429, allocations: 1.437 MB / 339.2 MB, free: 1.203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.0143, allocations: 4 kB / 339.2 MB, free: 1.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.0143, allocations: 0 / 339.2 MB, free: 1.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.01431, allocations: 0 / 339.2 MB, free: 1.199 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001352/0.01566, allocations: 1.193 MB / 340.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.0157, allocations: 12.03 kB / 340.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.836e-05/0.0158, allocations: 127 kB / 340.5 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002663/0.01606, allocations: 144.2 kB / 340.7 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006791/0.01674, allocations: 0.5836 MB / 341.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.01678, allocations: 58.38 kB / 341.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.239e-05/0.01685, allocations: 80.33 kB / 341.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008266/0.01767, allocations: 0.8262 MB / 342.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.0177, allocations: 11.88 kB / 342.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/0.01774, allocations: 32 kB / 342.3 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.01775, allocations: 23.98 kB / 342.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006317/0.01838, allocations: 0.5192 MB / 342.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.0212, allocations: 3.04 MB / 345.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007588/0.02196, allocations: 214.5 kB / 346.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.02209, allocations: 108.8 kB / 346.2 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.02211, allocations: 11.92 kB / 346.2 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.02213, allocations: 30.56 kB / 346.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.303e-06/0.02213, allocations: 0 / 346.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001228/0.02336, allocations: 0.9097 MB / 347.1 MB, free: 8.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.0234, allocations: 81.34 kB / 347.2 MB, free: 8.832 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.02398, allocations: 0.7465 MB / 347.9 MB, free: 8.078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.024, allocations: 29.7 kB / 348 MB, free: 8.043 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.02421, allocations: 0.5035 MB / 348.5 MB, free: 7.535 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.02426, allocations: 111 kB / 348.6 MB, free: 7.426 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-05/0.02435, allocations: 114.2 kB / 348.7 MB, free: 7.309 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.02446, allocations: 378.8 kB / 349.1 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.02462, allocations: 129.2 kB / 349.2 MB, free: 6.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.02507, allocations: 443.9 kB / 349.6 MB, free: 6.227 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004493/0.02552, allocations: 0.5833 MB / 350.2 MB, free: 5.508 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.02552, allocations: 4 kB / 350.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0005934/0.02611, allocations: 0.6074 MB / 350.8 MB, free: 4.887 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.02614, allocations: 16.22 kB / 350.8 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.02615, allocations: 8 kB / 350.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001136/0.02626, allocations: 36.84 kB / 350.9 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.02648, allocations: 135.8 kB / 351 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006262/0.02711, allocations: 1.279 MB / 352.3 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.02732, allocations: 48.03 kB / 352.3 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.02734, allocations: 28 kB / 352.4 MB, free: 3.223 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0001908/0.02753, allocations: 234.1 kB / 352.6 MB, free: 2.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.02759, allocations: 75.53 kB / 352.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003608/0.02795, allocations: 325.7 kB / 353 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.02795, allocations: 4 kB / 353 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.02796, allocations: 3.984 kB / 353 MB, free: 2.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.02796, allocations: 3.984 kB / 353 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009155/0.02888, allocations: 0.9959 MB / 354 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.02888, allocations: 4.219 kB / 354 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.02901, allocations: 59.91 kB / 354.1 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.011e-05/0.02906, allocations: 20.84 kB / 354.1 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.02907, allocations: 8 kB / 354.1 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005156/0.02959, allocations: 1.267 MB / 355.3 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.02959, allocations: 4.156 kB / 355.4 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004882/0.03008, allocations: 0.5636 MB / 355.9 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.0302, allocations: 103.5 kB / 356 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.03024, allocations: 8 kB / 356 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.03039, allocations: 23.98 kB / 356 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.03044, allocations: 27.89 kB / 356.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.03045, allocations: 11.94 kB / 356.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005724/0.03103, allocations: 0.5068 MB / 356.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03103, allocations: 0 / 356.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003586/0.03138, allocations: 160 kB / 356.8 MB, free: 14.58 MB / 330.7 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 (27): * Single equations (assignments): 26 * 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.0007342/0.03212, allocations: 1.117 MB / 357.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000511/0.03263, allocations: 441.2 kB / 358.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.03263, allocations: 0 / 358.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.03282, allocations: 239.1 kB / 358.5 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.03333, allocations: 178.8 kB / 358.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/0.03899, allocations: 6.204 MB / 364.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.0392, allocations: 352.5 kB / 365.3 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.03938, allocations: 90 kB / 365.3 MB, free: 5.477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.03961, allocations: 308.3 kB / 365.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.03962, allocations: 0 / 365.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02809/0.0677, allocations: 16.99 MB / 382.6 MB, free: 4.457 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/7.21, allocations: 18.19 kB / 382.7 MB, free: 4.445 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.586396430619061]