Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.DCPM_Start,fileNamePrefix="Modelica_4_0_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_0_0_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 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 114.6 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009452/0.0009452, allocations: 46.53 kB / 300.2 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0722/0.07316, allocations: 49.44 MB / 349.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006718/0.07989, allocations: 7.116 MB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.08294, allocations: 2.318 MB / 359.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004039/0.08335, allocations: 19.94 kB / 359.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009982/0.08437, allocations: 457.6 kB / 359.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005851/0.08496, allocations: 333.6 kB / 359.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.08526, allocations: 183.8 kB / 360.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00089/0.08616, allocations: 1.189 MB / 361.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005428/0.08671, allocations: 0.5113 MB / 361.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.08711, allocations: 466 kB / 362.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004309/0.08755, allocations: 497.8 kB / 362.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.08767, allocations: 116 kB / 362.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.08789, allocations: 152 kB / 363 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.08803, allocations: 227.1 kB / 363.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.08842, allocations: 0.5482 MB / 363.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.08943, allocations: 1.409 MB / 365.2 MB, free: 5.082 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.08944, allocations: 7.875 kB / 365.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.08945, allocations: 0 / 365.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.08947, allocations: 0 / 365.2 MB, free: 5.074 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.001623/0.09109, allocations: 1.243 MB / 366.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.09113, allocations: 8.031 kB / 366.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.09126, allocations: 135.1 kB / 366.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004233/0.09169, allocations: 139.6 kB / 366.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007667/0.09246, allocations: 0.6377 MB / 367.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.09251, allocations: 62.31 kB / 367.4 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.983e-05/0.09262, allocations: 88.03 kB / 367.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.09376, allocations: 0.7754 MB / 368.3 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.09379, allocations: 8 kB / 368.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/0.09385, allocations: 32 kB / 368.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.09387, allocations: 16 kB / 368.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008865/0.09476, allocations: 0.5192 MB / 368.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1261/0.2208, allocations: 3.394 MB / 372.2 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.2213, allocations: 227.2 kB / 372.5 MB, free: 23.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.2216, allocations: 114.3 kB / 372.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.2216, allocations: 6.25 kB / 372.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.2216, allocations: 36.58 kB / 372.6 MB, free: 23.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.2217, allocations: 3.891 kB / 372.6 MB, free: 23.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001815/0.2235, allocations: 1.036 MB / 373.6 MB, free: 23.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.2235, allocations: 85.25 kB / 373.7 MB, free: 22.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009128/0.2244, allocations: 0.7397 MB / 374.5 MB, free: 22.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2245, allocations: 31.05 kB / 374.5 MB, free: 22.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.2247, allocations: 0.4892 MB / 375 MB, free: 22.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.753e-05/0.2248, allocations: 105.6 kB / 375.1 MB, free: 22.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.2249, allocations: 117 kB / 375.2 MB, free: 22.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.225, allocations: 380.8 kB / 375.6 MB, free: 21.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.2253, allocations: 125.9 kB / 375.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.2256, allocations: 421.5 kB / 376.1 MB, free: 21.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005694/0.2262, allocations: 0.568 MB / 376.7 MB, free: 20.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.2262, allocations: 6.75 kB / 376.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008842/0.2271, allocations: 0.6076 MB / 377.3 MB, free: 20.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2271, allocations: 8.25 kB / 377.3 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.2271, allocations: 14.94 kB / 377.3 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001241/0.2272, allocations: 32.44 kB / 377.3 MB, free: 20.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.2276, allocations: 139.6 kB / 377.5 MB, free: 20.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006358/0.2283, allocations: 1.385 MB / 378.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.2287, allocations: 37.36 kB / 378.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.2288, allocations: 33.19 kB / 378.9 MB, free: 19.06 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.0002159/0.229, allocations: 237.7 kB / 379.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.604e-05/0.2291, allocations: 75.14 kB / 379.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005331/0.2296, allocations: 320.5 kB / 379.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.2296, allocations: 5.031 kB / 379.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.2296, allocations: 0 / 379.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2296, allocations: 9.125 kB / 379.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.231, allocations: 1.1 MB / 380.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.231, allocations: 2.031 kB / 380.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.2312, allocations: 65.02 kB / 380.7 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.829e-05/0.2313, allocations: 18.67 kB / 380.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.2313, allocations: 8.875 kB / 380.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005303/0.2318, allocations: 1.374 MB / 382.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2319, allocations: 3 kB / 382.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007007/0.2326, allocations: 0.5638 MB / 382.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.2327, allocations: 175 kB / 382.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.335e-05/0.2328, allocations: 9.047 kB / 382.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.2331, allocations: 15.3 kB / 382.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/0.2332, allocations: 30.12 kB / 382.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.2332, allocations: 14.69 kB / 382.9 MB, free: 16.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005419/0.2338, allocations: 0.5013 MB / 383.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2338, allocations: 0 / 383.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000566/0.2343, allocations: 158.4 kB / 383.6 MB, free: 15.8 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.0008874/0.2352, allocations: 1.122 MB / 384.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007261/0.236, allocations: 475 kB / 385.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.236, allocations: 0 / 385.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.2363, allocations: 239.9 kB / 385.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008425/0.2372, allocations: 179.2 kB / 385.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007553/0.2447, allocations: 6.931 MB / 392.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.2451, allocations: 0.9354 MB / 393.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003221/0.2454, allocations: 86.02 kB / 393.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002618/0.2457, allocations: 300.2 kB / 393.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2457, allocations: 4 kB / 393.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.029/1.275, allocations: 14.93 MB / 408.8 MB, free: 13.99 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/1.275, allocations: 233.3 kB / 409 MB, free: 13.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.808/4.083, allocations: 0 / 409 MB, free: 13.73 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches