Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008266/0.0008266, allocations: 79.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.0007811/0.0007811, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8551/0.8551, allocations: 177.1 MB / 204.3 MB, free: 5.723 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_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.561e-05/1.782e-05, allocations: 10.22 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008681/0.008699, allocations: 10.58 MB / 335.2 MB, free: 5.281 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005266/0.01397, allocations: 3.144 MB / 338.3 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.01558, allocations: 39.88 kB / 338.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001681/0.01727, allocations: 0.6477 MB / 339 MB, free: 1.434 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002773/0.02004, allocations: 0.8179 MB / 339.8 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008179/0.02086, allocations: 411.5 kB / 340.2 MB, free: 212 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002948/0.0238, allocations: 2.51 MB / 342.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009169/0.02472, allocations: 0.6076 MB / 343.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.02657, allocations: 1.395 MB / 344.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008593/0.02743, allocations: 0.7126 MB / 345.4 MB, free: 10.92 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003926/0.02783, allocations: 232 kB / 345.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004582/0.02828, allocations: 267.9 kB / 345.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002359/0.02852, allocations: 470.2 kB / 346.4 MB, free: 9.969 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007416/0.02926, allocations: 0.7404 MB / 347.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002259/0.03152, allocations: 2.839 MB / 350 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.03153, allocations: 0 / 350 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.03153, allocations: 0 / 350 MB, free: 6.379 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.602e-05/0.03161, allocations: 0 / 350 MB, free: 6.379 MB / 314.7 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.003073/0.03468, allocations: 2.124 MB / 352.1 MB, free: 4.215 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.03473, allocations: 8.031 kB / 352.1 MB, free: 4.207 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001979/0.03493, allocations: 220.1 kB / 352.3 MB, free: 3.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006011/0.03553, allocations: 299.5 kB / 352.6 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.03708, allocations: 1.039 MB / 353.6 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.191e-05/0.03715, allocations: 111.5 kB / 353.8 MB, free: 2.492 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.03731, allocations: 164.3 kB / 353.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001936/0.03924, allocations: 1.612 MB / 355.5 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.03929, allocations: 8 kB / 355.5 MB, free: 0.625 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.524e-05/0.03937, allocations: 60 kB / 355.6 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.0394, allocations: 40 kB / 355.6 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.04094, allocations: 1.045 MB / 356.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006088/0.04703, allocations: 5.658 MB / 362.3 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.04804, allocations: 0.5624 MB / 362.9 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005931/0.04863, allocations: 430.6 kB / 363.3 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.04868, allocations: 12.66 kB / 363.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.04871, allocations: 43.16 kB / 363.4 MB, free: 8.465 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 2.975e-06/0.04871, allocations: 0 / 363.4 MB, free: 8.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.003583/0.05229, allocations: 2.169 MB / 365.5 MB, free: 6.262 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/0.05237, allocations: 111.5 kB / 365.7 MB, free: 6.129 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.05389, allocations: 1.333 MB / 367 MB, free: 4.781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.05393, allocations: 37.7 kB / 367 MB, free: 4.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004638/0.0544, allocations: 0.8633 MB / 367.9 MB, free: 3.867 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.05455, allocations: 277.6 kB / 368.2 MB, free: 3.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.05474, allocations: 198.8 kB / 368.4 MB, free: 3.395 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.05484, allocations: 357.9 kB / 368.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.0552, allocations: 282.5 kB / 369 MB, free: 2.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006017/0.0558, allocations: 0.7887 MB / 369.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.05697, allocations: 1.081 MB / 370.8 MB, free: 468 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.05698, allocations: 8 kB / 370.9 MB, free: 460 kB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001617/0.0586, allocations: 1.268 MB / 372.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.05862, allocations: 12 kB / 372.1 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.05864, allocations: 16 kB / 372.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003213/0.05896, allocations: 142.9 kB / 372.3 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/0.0594, allocations: 247.6 kB / 372.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/0.0619, allocations: 4.308 MB / 376.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.06241, allocations: 55.97 kB / 376.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002669/0.06268, allocations: 52 kB / 376.9 MB, free: 9.988 MB / 346.7 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.0004232/0.0631, allocations: 357.5 kB / 377.3 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.06322, allocations: 151 kB / 377.4 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.06423, allocations: 0.8218 MB / 378.3 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.06424, allocations: 8 kB / 378.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.06424, allocations: 0 / 378.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.06425, allocations: 7.922 kB / 378.3 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.06657, allocations: 2.125 MB / 380.4 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.06657, allocations: 4 kB / 380.4 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.06687, allocations: 131.8 kB / 380.5 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002556/0.06712, allocations: 134.9 kB / 380.7 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.06716, allocations: 24.06 kB / 380.7 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002434/0.06959, allocations: 4.454 MB / 385.1 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.06959, allocations: 7.938 kB / 385.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.07099, allocations: 1.294 MB / 386.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002697/0.07126, allocations: 219 kB / 386.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.457e-05/0.07134, allocations: 27.88 kB / 386.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.07165, allocations: 31.97 kB / 386.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.129e-05/0.07174, allocations: 68.33 kB / 386.8 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.07176, allocations: 23.94 kB / 386.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008945/0.07266, allocations: 0.8781 MB / 387.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07266, allocations: 0 / 387.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007356/0.07339, allocations: 335.9 kB / 388 MB, free: 14.35 MB / 362.7 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.001572/0.07497, allocations: 1.87 MB / 389.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.07628, allocations: 1.085 MB / 391 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.07628, allocations: 4 kB / 391 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005537/0.07684, allocations: 0.6872 MB / 391.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008985/0.07774, allocations: 374.3 kB / 392 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.0907, allocations: 11.64 MB / 403.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/0.09115, allocations: 0.6302 MB / 404.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005213/0.09167, allocations: 179.5 kB / 404.5 MB, free: 13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007598/0.09243, allocations: 0.6097 MB / 405.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.844e-06/0.09244, allocations: 0 / 405.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05823/0.1507, allocations: 33.72 MB / 438.8 MB, free: 11.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.447/8.597, allocations: 18.66 kB / 438.8 MB, free: 11.04 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 11.799647716805339]