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.0009836/0.0009836, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 55.22 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08323/0.08436, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007557/0.09196, allocations: 7.146 MB / 364.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.09547, allocations: 2.391 MB / 367.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006764/0.09617, allocations: 16 kB / 367.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.0975, allocations: 493 kB / 367.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008544/0.09837, allocations: 385 kB / 368 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.09873, allocations: 203.7 kB / 368.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009238/0.09966, allocations: 1.195 MB / 369.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005767/0.1002, allocations: 0.5192 MB / 369.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000472/0.1007, allocations: 458.2 kB / 370.4 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004166/0.1012, allocations: 493.8 kB / 370.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.1013, allocations: 115.9 kB / 371 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.1015, allocations: 152 kB / 371.1 MB, free: 384 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.1017, allocations: 231.2 kB / 371.3 MB, free: 152 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.13/0.2317, allocations: 0.539 MB / 371.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.233, allocations: 1.412 MB / 373.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2331, allocations: 1.625 kB / 373.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2331, allocations: 4.266 kB / 373.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.2331, allocations: 0 / 373.3 MB, free: 11.61 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.00159/0.2347, allocations: 1.244 MB / 374.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.2347, allocations: 14.75 kB / 374.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.2348, allocations: 123.8 kB / 374.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004092/0.2352, allocations: 140.6 kB / 374.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.236, allocations: 0.6384 MB / 375.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.236, allocations: 60.41 kB / 375.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.2361, allocations: 81.91 kB / 375.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.2372, allocations: 0.7884 MB / 376.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.2373, allocations: 5.062 kB / 376.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.478e-05/0.2373, allocations: 31.2 kB / 376.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.2373, allocations: 20.62 kB / 376.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008697/0.2382, allocations: 0.516 MB / 376.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003065/0.2413, allocations: 3.399 MB / 380.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003951/0.2417, allocations: 228.2 kB / 380.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.2419, allocations: 113.5 kB / 380.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.2419, allocations: 6.344 kB / 380.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.433e-05/0.242, allocations: 40.06 kB / 380.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.252e-06/0.242, allocations: 2.406 kB / 380.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.00156/0.2435, allocations: 1.041 MB / 381.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.2436, allocations: 84.06 kB / 381.8 MB, free: 7.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007417/0.2443, allocations: 0.7391 MB / 382.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.2443, allocations: 29.7 kB / 382.6 MB, free: 7.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.2446, allocations: 0.4933 MB / 383.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.937e-05/0.2446, allocations: 100.1 kB / 383.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.2447, allocations: 116.9 kB / 383.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.005e-05/0.2448, allocations: 376.1 kB / 383.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.2451, allocations: 126.1 kB / 383.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003123/0.2454, allocations: 418.4 kB / 384.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005627/0.2459, allocations: 0.5726 MB / 384.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.246, allocations: 3.188 kB / 384.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008591/0.2468, allocations: 0.6108 MB / 385.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2468, allocations: 9.359 kB / 385.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2469, allocations: 10.81 kB / 385.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001091/0.247, allocations: 42.41 kB / 385.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.2474, allocations: 137.9 kB / 385.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006048/0.248, allocations: 1.391 MB / 387 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003785/0.2484, allocations: 33.75 kB / 387 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.2484, allocations: 33.28 kB / 387.1 MB, free: 3.754 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.0002066/0.2486, allocations: 240.4 kB / 387.3 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.619e-05/0.2487, allocations: 72 kB / 387.4 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005578/0.2493, allocations: 327.4 kB / 387.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2493, allocations: 5.672 kB / 387.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.2493, allocations: 0.875 kB / 387.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2493, allocations: 6.484 kB / 387.7 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.2506, allocations: 1.1 MB / 388.8 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2506, allocations: 2.125 kB / 388.8 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.2509, allocations: 60.28 kB / 388.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-05/0.2509, allocations: 20.8 kB / 388.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.251, allocations: 10.38 kB / 388.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005178/0.2515, allocations: 1.378 MB / 390.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2515, allocations: 3.375 kB / 390.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000692/0.2522, allocations: 0.5468 MB / 390.8 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.2524, allocations: 169.9 kB / 391 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.853e-05/0.2524, allocations: 8.953 kB / 391 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000296/0.2527, allocations: 23.19 kB / 391 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.2528, allocations: 29.17 kB / 391 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.2528, allocations: 7.438 kB / 391 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004952/0.2533, allocations: 0.5052 MB / 391.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2533, allocations: 0 / 391.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005463/0.2539, allocations: 159.2 kB / 391.7 MB, free: 0.5469 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.0009844/0.2549, allocations: 1.122 MB / 392.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007522/0.2556, allocations: 479.3 kB / 393.3 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2557, allocations: 0 / 393.3 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.256, allocations: 235.2 kB / 393.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008606/0.2569, allocations: 189.5 kB / 393.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007375/0.2643, allocations: 6.636 MB / 400.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.2647, allocations: 0.9389 MB / 401.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003166/0.2651, allocations: 90.33 kB / 401.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.2654, allocations: 301.9 kB / 401.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2654, allocations: 1.062 kB / 401.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.477/2.743, allocations: 15.12 MB / 416.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/13.82, allocations: 3.609 kB / 416.8 MB, free: 13.4 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