Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9273/0.9273, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.996e-05/2.152e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006727/0.006749, allocations: 6.377 MB / 330.9 MB, free: 9.496 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004358/0.01111, allocations: 2.212 MB / 333.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008455/0.01195, allocations: 19.94 kB / 333.1 MB, free: 7.258 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.01337, allocations: 484.8 kB / 333.6 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008001/0.01417, allocations: 428.7 kB / 334 MB, free: 6.359 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.01451, allocations: 211.8 kB / 334.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009492/0.01546, allocations: 1.256 MB / 335.5 MB, free: 4.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004306/0.01589, allocations: 312.5 kB / 335.8 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007/0.01659, allocations: 0.7092 MB / 336.5 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.01694, allocations: 362.8 kB / 336.9 MB, free: 3.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.976e-05/0.01703, allocations: 116 kB / 337 MB, free: 3.387 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.01724, allocations: 144 kB / 337.1 MB, free: 3.246 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.01735, allocations: 235.1 kB / 337.3 MB, free: 3.016 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.01759, allocations: 383.1 kB / 337.7 MB, free: 2.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.01864, allocations: 1.433 MB / 339.1 MB, free: 1.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.01864, allocations: 0 / 339.1 MB, free: 1.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.01864, allocations: 0 / 339.1 MB, free: 1.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.01866, allocations: 0 / 339.1 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.001346/0.02, allocations: 1.186 MB / 340.3 MB, free: 15.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.02005, allocations: 19.92 kB / 340.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.02015, allocations: 127.1 kB / 340.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.02046, allocations: 148.2 kB / 340.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000733/0.02119, allocations: 0.5835 MB / 341.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.02123, allocations: 58.38 kB / 341.3 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.59e-05/0.0213, allocations: 88.31 kB / 341.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009082/0.02221, allocations: 0.8262 MB / 342.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.02224, allocations: 11.94 kB / 342.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.02234, allocations: 32 kB / 342.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.02235, allocations: 20 kB / 342.2 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006964/0.02305, allocations: 0.5153 MB / 342.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.02577, allocations: 3.048 MB / 345.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.0261, allocations: 206.6 kB / 346 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.02624, allocations: 120.7 kB / 346.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.02626, allocations: 4 kB / 346.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.02628, allocations: 38.5 kB / 346.2 MB, free: 9.855 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.02628, allocations: 0 / 346.2 MB, free: 9.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001273/0.02755, allocations: 0.9045 MB / 347.1 MB, free: 8.914 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.0276, allocations: 81.34 kB / 347.1 MB, free: 8.816 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006333/0.02823, allocations: 0.7465 MB / 347.9 MB, free: 8.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.02825, allocations: 33.64 kB / 347.9 MB, free: 8.023 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.02847, allocations: 0.4996 MB / 348.4 MB, free: 7.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.02852, allocations: 115 kB / 348.5 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.854e-05/0.02862, allocations: 118.2 kB / 348.6 MB, free: 7.285 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.02874, allocations: 374.8 kB / 349 MB, free: 6.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.0289, allocations: 125.2 kB / 349.1 MB, free: 6.789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.02917, allocations: 447.9 kB / 349.6 MB, free: 6.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004984/0.02967, allocations: 0.5716 MB / 350.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.02968, allocations: 4 kB / 350.2 MB, free: 5.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006617/0.03034, allocations: 0.6115 MB / 350.8 MB, free: 4.875 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.03036, allocations: 12 kB / 350.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.03037, allocations: 8 kB / 350.8 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001321/0.0305, allocations: 36.84 kB / 350.8 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.03074, allocations: 135.8 kB / 351 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007707/0.03151, allocations: 1.287 MB / 352.2 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.03177, allocations: 39.94 kB / 352.3 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.03179, allocations: 28 kB / 352.3 MB, free: 3.215 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.0002249/0.03201, allocations: 237.6 kB / 352.5 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.03208, allocations: 75.53 kB / 352.6 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.03246, allocations: 325.7 kB / 352.9 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.03246, allocations: 4 kB / 352.9 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.03247, allocations: 7.938 kB / 352.9 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.03247, allocations: 0 / 352.9 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009873/0.03346, allocations: 0.9961 MB / 353.9 MB, free: 1.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.03346, allocations: 4.031 kB / 353.9 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.03361, allocations: 59.91 kB / 354 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.706e-05/0.03367, allocations: 24.84 kB / 354 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.03369, allocations: 4 kB / 354 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006384/0.03432, allocations: 1.26 MB / 355.3 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-05/0.03434, allocations: 8.047 kB / 355.3 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005412/0.03488, allocations: 0.5606 MB / 355.9 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.03502, allocations: 99.53 kB / 356 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.818e-05/0.03506, allocations: 8 kB / 356 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.03521, allocations: 23.98 kB / 356 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.03527, allocations: 23.95 kB / 356 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.03528, allocations: 11.94 kB / 356 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004237/0.0357, allocations: 0.503 MB / 356.5 MB, free: 14.74 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0357, allocations: 3.938 kB / 356.5 MB, free: 14.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004393/0.03614, allocations: 167.9 kB / 356.7 MB, free: 14.57 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.0007825/0.03692, allocations: 1.12 MB / 357.8 MB, free: 13.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005466/0.03747, allocations: 449 kB / 358.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.03747, allocations: 0 / 358.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.03768, allocations: 231.3 kB / 358.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005434/0.03822, allocations: 181.4 kB / 358.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006149/0.04437, allocations: 6.204 MB / 364.9 MB, free: 5.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.0446, allocations: 352.5 kB / 365.2 MB, free: 5.559 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002248/0.04482, allocations: 90.02 kB / 365.3 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.04506, allocations: 300.4 kB / 365.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.04506, allocations: 3.938 kB / 365.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.08074, allocations: 17 MB / 382.6 MB, free: 4.414 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/7.694, allocations: 10.77 kB / 382.6 MB, free: 4.406 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 9.876649858430028]