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.001082/0.001082, allocations: 121.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 208.6 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2882, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009612/0.2978, allocations: 7.149 MB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004776/0.3026, allocations: 2.376 MB / 418.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.3037, allocations: 23.94 kB / 418.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.3054, allocations: 496.9 kB / 418.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.3068, allocations: 381 kB / 419.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006475/0.3075, allocations: 207.7 kB / 419.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.3093, allocations: 1.202 MB / 420.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008656/0.3101, allocations: 0.5154 MB / 421.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008358/0.311, allocations: 474.2 kB / 421.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007442/0.3118, allocations: 497.8 kB / 422 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002587/0.312, allocations: 115.9 kB / 422.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004353/0.3125, allocations: 152 kB / 422.3 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.3127, allocations: 231.2 kB / 422.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005552/0.3132, allocations: 0.5365 MB / 423.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001476/0.3147, allocations: 1.433 MB / 424.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3147, allocations: 4 kB / 424.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3148, allocations: 0 / 424.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.3148, allocations: 0 / 424.5 MB, free: 1.699 MB / 334.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.002004/0.3168, allocations: 1.254 MB / 425.8 MB, free: 404 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3168, allocations: 12.03 kB / 425.8 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.317, allocations: 123.1 kB / 425.9 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004547/0.3174, allocations: 139.7 kB / 426 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.3185, allocations: 0.6494 MB / 426.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.3185, allocations: 62.38 kB / 426.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.3187, allocations: 76.12 kB / 426.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.3199, allocations: 0.7871 MB / 427.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.32, allocations: 3.906 kB / 427.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.23e-05/0.32, allocations: 32 kB / 427.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.32, allocations: 20 kB / 427.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3211, allocations: 0.527 MB / 428.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003992/0.3251, allocations: 3.356 MB / 431.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.3256, allocations: 226.5 kB / 431.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.3258, allocations: 120.7 kB / 431.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.3259, allocations: 8 kB / 431.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.3259, allocations: 38.56 kB / 431.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.3259, allocations: 0 / 431.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002053/0.328, allocations: 1.045 MB / 433 MB, free: 8.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.3281, allocations: 81.34 kB / 433 MB, free: 8.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009099/0.329, allocations: 0.7387 MB / 433.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.329, allocations: 25.7 kB / 433.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.3293, allocations: 0.4943 MB / 434.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.117e-05/0.3294, allocations: 102.5 kB / 434.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.3296, allocations: 118.2 kB / 434.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3297, allocations: 374.8 kB / 434.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.33, allocations: 125.2 kB / 435 MB, free: 6.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.3305, allocations: 426.1 kB / 435.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007694/0.3313, allocations: 0.5637 MB / 436 MB, free: 5.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3313, allocations: 4 kB / 436 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001044/0.3323, allocations: 0.6109 MB / 436.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3324, allocations: 12 kB / 436.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.3324, allocations: 12 kB / 436.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.3326, allocations: 37.31 kB / 436.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.333, allocations: 143.7 kB / 436.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.3341, allocations: 1.398 MB / 438.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.3346, allocations: 31.98 kB / 438.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.3346, allocations: 28 kB / 438.3 MB, free: 3.027 MB / 350.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.0003377/0.3349, allocations: 245.5 kB / 438.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-05/0.3351, allocations: 79.12 kB / 438.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006771/0.3357, allocations: 317.4 kB / 438.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3358, allocations: 4 kB / 438.9 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.3358, allocations: 0 / 438.9 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3358, allocations: 0 / 438.9 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.3374, allocations: 1.101 MB / 440 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3374, allocations: 0 / 440 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.3377, allocations: 64.12 kB / 440 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.638e-05/0.3378, allocations: 20.84 kB / 440.1 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.3378, allocations: 8 kB / 440.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.3389, allocations: 1.371 MB / 441.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.3389, allocations: 4 kB / 441.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009048/0.3398, allocations: 0.5488 MB / 442 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002529/0.3401, allocations: 172.3 kB / 442.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.271e-05/0.3402, allocations: 11.98 kB / 442.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.3405, allocations: 19.98 kB / 442.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.563e-05/0.3406, allocations: 27.84 kB / 442.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.3406, allocations: 11.94 kB / 442.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007412/0.3413, allocations: 0.5108 MB / 442.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3413, allocations: 0 / 442.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006807/0.342, allocations: 163.9 kB / 442.9 MB, free: 14.07 MB / 366.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.001333/0.3434, allocations: 1.125 MB / 444 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009108/0.3443, allocations: 454.8 kB / 444.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3443, allocations: 1.938 kB / 444.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.3447, allocations: 243 kB / 444.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009494/0.3457, allocations: 178.4 kB / 444.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008917/0.3546, allocations: 6.24 MB / 451.1 MB, free: 5.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.3552, allocations: 0.9449 MB / 452.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003487/0.3556, allocations: 90 kB / 452.2 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003601/0.356, allocations: 303.3 kB / 452.5 MB, free: 4 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.356, allocations: 4 kB / 452.5 MB, free: 3.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04523/0.4012, allocations: 15.66 MB / 468.1 MB, free: 4.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.44, allocations: 7.938 kB / 468.1 MB, free: 4.559 MB / 382.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