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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006962/0.0006963, allocations: 96.67 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008655/0.0008655, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.178/1.178, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002026/0.0002026, allocations: 4 kB / 307.8 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08219, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006832/0.08905, allocations: 6.674 MB / 366 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003476/0.09255, allocations: 2.326 MB / 368.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006332/0.09321, allocations: 16 kB / 368.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.09429, allocations: 449.6 kB / 368.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.09498, allocations: 329.6 kB / 369.1 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000333/0.09532, allocations: 175.9 kB / 369.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009379/0.09627, allocations: 1.14 MB / 370.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005374/0.09681, allocations: 450.6 kB / 370.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004415/0.09726, allocations: 386.2 kB / 371.3 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004252/0.0977, allocations: 429.8 kB / 371.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.458e-05/0.09778, allocations: 59.94 kB / 371.8 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.09797, allocations: 95.97 kB / 371.8 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.09809, allocations: 151.2 kB / 372 MB, free: 480 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1463/0.2444, allocations: 0.499 MB / 372.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.2461, allocations: 1.333 MB / 373.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2461, allocations: 3.25 kB / 373.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2461, allocations: 0 / 373.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.2461, allocations: 1.406 kB / 373.8 MB, free: 11.21 MB / 302.1 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.001551/0.2477, allocations: 1.088 MB / 374.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.2477, allocations: 10.47 kB / 374.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.2478, allocations: 124.8 kB / 375.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004442/0.2483, allocations: 152 kB / 375.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007737/0.2491, allocations: 0.6331 MB / 375.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.2491, allocations: 58.59 kB / 375.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.2493, allocations: 83.77 kB / 376 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.2507, allocations: 0.7906 MB / 376.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.2507, allocations: 2.969 kB / 376.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.619e-05/0.2508, allocations: 33.41 kB / 376.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.2508, allocations: 21.19 kB / 376.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009571/0.2518, allocations: 0.5349 MB / 377.4 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003485/0.2553, allocations: 3.412 MB / 380.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/0.2557, allocations: 240.8 kB / 381 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.256, allocations: 119.3 kB / 381.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.256, allocations: 7.062 kB / 381.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.256, allocations: 36.67 kB / 381.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.744e-06/0.256, allocations: 0 / 381.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001781/0.2578, allocations: 1.081 MB / 382.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.2579, allocations: 80.62 kB / 382.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008655/0.2587, allocations: 0.7369 MB / 383.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2588, allocations: 33.86 kB / 383.1 MB, free: 7.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.259, allocations: 0.4884 MB / 383.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.481e-05/0.2591, allocations: 112.2 kB / 383.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.2592, allocations: 50.8 kB / 383.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.629e-05/0.2592, allocations: 380.1 kB / 384.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.2595, allocations: 130.7 kB / 384.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.2599, allocations: 432.2 kB / 384.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000613/0.2605, allocations: 0.5854 MB / 385.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2605, allocations: 3.094 kB / 385.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009221/0.2614, allocations: 0.624 MB / 385.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.2615, allocations: 12.72 kB / 385.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.2615, allocations: 14.78 kB / 385.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001264/0.2616, allocations: 33.25 kB / 385.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004051/0.262, allocations: 141.7 kB / 386.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000635/0.2627, allocations: 1.294 MB / 387.4 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004167/0.2631, allocations: 37.55 kB / 387.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.2631, allocations: 33.59 kB / 387.4 MB, free: 4.281 MB / 302.1 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.0002607/0.2634, allocations: 240.2 kB / 387.7 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.792e-05/0.2635, allocations: 70.03 kB / 387.7 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006131/0.2641, allocations: 335.2 kB / 388.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2641, allocations: 2.688 kB / 388.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.2641, allocations: 1.688 kB / 388.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2642, allocations: 9.375 kB / 388.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.2656, allocations: 1.121 MB / 389.2 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2656, allocations: 1.125 kB / 389.2 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.2659, allocations: 64.53 kB / 389.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.837e-05/0.2659, allocations: 20.33 kB / 389.3 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.266, allocations: 7.312 kB / 389.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000532/0.2665, allocations: 1.275 MB / 390.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2665, allocations: 9.188 kB / 390.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000766/0.2673, allocations: 0.5724 MB / 391.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.2674, allocations: 181.7 kB / 391.3 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.34e-05/0.2675, allocations: 14.38 kB / 391.3 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.2678, allocations: 26.39 kB / 391.4 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.171e-05/0.2679, allocations: 23.52 kB / 391.4 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.2679, allocations: 6.469 kB / 391.4 MB, free: 1.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005456/0.2685, allocations: 0.5014 MB / 391.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2685, allocations: 0 / 391.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006195/0.2691, allocations: 161.9 kB / 392.1 MB, free: 1.16 MB / 302.1 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.0009796/0.2701, allocations: 1.138 MB / 393.2 MB, free: 276 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007372/0.2708, allocations: 480.8 kB / 393.7 MB, free: 76 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.2708, allocations: 1.625 kB / 393.7 MB, free: 76 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003484/0.2712, allocations: 254 kB / 393.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.2722, allocations: 170.6 kB / 394.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009115/0.2814, allocations: 7.057 MB / 401.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.2819, allocations: 0.9416 MB / 402.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003481/0.2822, allocations: 80.41 kB / 402.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.2826, allocations: 306.8 kB / 402.5 MB, free: 9.934 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2826, allocations: 0 / 402.5 MB, free: 9.934 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5191/0.8017, allocations: 14.41 MB / 416.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/0.802, allocations: 239 kB / 417.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.719, allocations: 3.938 kB / 417.1 MB, free: 13.71 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches