Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 124.2 kB / 17.78 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 189.2 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 51.91 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1114, allocations: 52.13 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01129/0.1227, allocations: 8.017 MB / 425.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005473/0.1281, allocations: 2.602 MB / 428.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009424/0.1291, allocations: 27.88 kB / 428.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.1307, allocations: 0.5637 MB / 429 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1319, allocations: 496.4 kB / 429.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004601/0.1323, allocations: 235.8 kB / 429.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00178/0.1341, allocations: 1.445 MB / 431.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006524/0.1348, allocations: 398.8 kB / 431.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000837/0.1356, allocations: 0.5408 MB / 432.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007039/0.1363, allocations: 0.5872 MB / 432.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001841/0.1365, allocations: 136 kB / 432.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.1368, allocations: 176 kB / 433 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.1371, allocations: 275 kB / 433.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007742/0.1378, allocations: 0.6454 MB / 433.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002009/0.1398, allocations: 1.708 MB / 435.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1398, allocations: 0 / 435.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1398, allocations: 0 / 435.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.1399, allocations: 4 kB / 435.6 MB, free: 10.69 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002765/0.1426, allocations: 1.459 MB / 437.1 MB, free: 9.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.1427, allocations: 8.031 kB / 437.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001943/0.1429, allocations: 152.3 kB / 437.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005846/0.1435, allocations: 180 kB / 437.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.145, allocations: 0.7421 MB / 438.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.294e-05/0.145, allocations: 70 kB / 438.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.1452, allocations: 95.94 kB / 438.3 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.1469, allocations: 0.923 MB / 439.2 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.411e-05/0.147, allocations: 11.89 kB / 439.2 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.1471, allocations: 40 kB / 439.3 MB, free: 6.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.591e-05/0.1471, allocations: 24 kB / 439.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.1484, allocations: 0.6246 MB / 439.9 MB, free: 6.238 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005631/0.154, allocations: 3.875 MB / 443.8 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006142/0.1547, allocations: 339.6 kB / 444.1 MB, free: 1.762 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1549, allocations: 139.1 kB / 444.3 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.155, allocations: 11.97 kB / 444.3 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.155, allocations: 38.5 kB / 444.3 MB, free: 1.566 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.384e-06/0.155, allocations: 4 kB / 444.3 MB, free: 1.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002614/0.1576, allocations: 1.203 MB / 445.5 MB, free: 292 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.349e-05/0.1577, allocations: 81.11 kB / 445.6 MB, free: 192 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2009/0.3586, allocations: 0.824 MB / 446.4 MB, free: 30.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.69e-05/0.3587, allocations: 29.45 kB / 446.4 MB, free: 29.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003203/0.3591, allocations: 0.5811 MB / 447 MB, free: 29.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.104e-05/0.3591, allocations: 134.2 kB / 447.2 MB, free: 29.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.3593, allocations: 130.3 kB / 447.3 MB, free: 29.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.305e-05/0.3593, allocations: 334.9 kB / 447.6 MB, free: 29.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.3596, allocations: 147.8 kB / 447.8 MB, free: 29.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003821/0.36, allocations: 459.6 kB / 448.2 MB, free: 29.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006405/0.3607, allocations: 0.6385 MB / 448.8 MB, free: 28.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3607, allocations: 3.844 kB / 448.9 MB, free: 28.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001103/0.3618, allocations: 0.6856 MB / 449.5 MB, free: 28.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.3618, allocations: 12.39 kB / 449.5 MB, free: 28.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3618, allocations: 12 kB / 449.6 MB, free: 28.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001692/0.362, allocations: 36.61 kB / 449.6 MB, free: 28.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.3624, allocations: 157.2 kB / 449.7 MB, free: 28.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000834/0.3632, allocations: 1.384 MB / 451.1 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/0.3637, allocations: 44.11 kB / 451.2 MB, free: 27.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.3637, allocations: 33 kB / 451.2 MB, free: 27.31 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * 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.000291/0.364, allocations: 259.5 kB / 451.5 MB, free: 27.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.462e-05/0.3641, allocations: 87.92 kB / 451.5 MB, free: 27.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006335/0.3648, allocations: 375.8 kB / 451.9 MB, free: 27.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3648, allocations: 9.297 kB / 451.9 MB, free: 27.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3648, allocations: 0.875 kB / 451.9 MB, free: 27.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3648, allocations: 11.52 kB / 451.9 MB, free: 27.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.3665, allocations: 1.264 MB / 453.2 MB, free: 26.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3665, allocations: 1.5 kB / 453.2 MB, free: 26.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.3668, allocations: 74.42 kB / 453.3 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.766e-05/0.3669, allocations: 18.64 kB / 453.3 MB, free: 26.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.3669, allocations: 12.88 kB / 453.3 MB, free: 26.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006006/0.3675, allocations: 1.373 MB / 454.7 MB, free: 25.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3675, allocations: 3.922 kB / 454.7 MB, free: 25.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009012/0.3684, allocations: 0.6362 MB / 455.3 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.3686, allocations: 192.7 kB / 455.5 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.639e-05/0.3687, allocations: 8.938 kB / 455.5 MB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.369, allocations: 26.66 kB / 455.5 MB, free: 24.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.331e-05/0.3691, allocations: 36.81 kB / 455.6 MB, free: 24.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.3691, allocations: 13.48 kB / 455.6 MB, free: 24.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000799/0.3699, allocations: 0.5593 MB / 456.1 MB, free: 24.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3699, allocations: 0 / 456.1 MB, free: 24.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007054/0.3706, allocations: 188.2 kB / 456.3 MB, free: 24.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001315/0.3719, allocations: 1.202 MB / 457.5 MB, free: 23.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009998/0.3729, allocations: 0.4962 MB / 458 MB, free: 23.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3729, allocations: 3.672 kB / 458 MB, free: 23.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.3733, allocations: 262.7 kB / 458.3 MB, free: 23.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009719/0.3743, allocations: 203.1 kB / 458.5 MB, free: 22.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009462/0.3837, allocations: 7.119 MB / 465.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005902/0.3843, allocations: 0.9886 MB / 466.6 MB, free: 17.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004517/0.3848, allocations: 104.2 kB / 466.7 MB, free: 17.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003586/0.3851, allocations: 373.8 kB / 467.1 MB, free: 17.67 MB / 366.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3851, allocations: 0 / 467.1 MB, free: 17.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05209/0.4372, allocations: 18.04 MB / 485.1 MB, free: 9.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.26, allocations: 8.047 kB / 485.1 MB, free: 9.32 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.19219403900206]