Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 103.5 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.001305/0.001306, allocations: 216.5 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.302/1.302, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 59.66 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07837/0.07948, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01062/0.09014, allocations: 11.75 MB / 369.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1338/0.224, allocations: 3.252 MB / 372.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009925/0.225, allocations: 36.56 kB / 372.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.2264, allocations: 0.6407 MB / 373.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.2275, allocations: 0.6782 MB / 374 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.2281, allocations: 397.4 kB / 374.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.2298, allocations: 2.231 MB / 376.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009799/0.2308, allocations: 0.9982 MB / 377.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008206/0.2316, allocations: 0.8382 MB / 378.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007234/0.2323, allocations: 0.9096 MB / 379.3 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002186/0.2326, allocations: 217.4 kB / 379.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004016/0.233, allocations: 252.6 kB / 379.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.2332, allocations: 431.7 kB / 380.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006829/0.2339, allocations: 1.02 MB / 381.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00203/0.2359, allocations: 2.645 MB / 383.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.236, allocations: 7.938 kB / 383.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.236, allocations: 1.375 kB / 383.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.359e-05/0.236, allocations: 0 / 383.9 MB, free: 7.414 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002845/0.2389, allocations: 2.067 MB / 385.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2389, allocations: 9.219 kB / 385.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001919/0.2391, allocations: 223.9 kB / 386.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006758/0.2398, allocations: 252.4 kB / 386.4 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.2409, allocations: 1.025 MB / 387.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.734e-05/0.241, allocations: 113.2 kB / 387.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.2412, allocations: 167.5 kB / 387.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.2431, allocations: 1.484 MB / 389.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.241e-05/0.2432, allocations: 13.22 kB / 389.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.2433, allocations: 67.31 kB / 389.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.2433, allocations: 38.69 kB / 389.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.2449, allocations: 0.9734 MB / 390.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005866/0.2507, allocations: 6.573 MB / 396.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007312/0.2515, allocations: 396.1 kB / 397.2 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.2519, allocations: 223.5 kB / 397.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.2519, allocations: 5.719 kB / 397.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005662/0.2525, allocations: 267.6 kB / 397.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.034e-06/0.2525, allocations: 0 / 397.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002809/0.2553, allocations: 1.765 MB / 399.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.593e-05/0.2554, allocations: 161.1 kB / 399.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.2569, allocations: 1.274 MB / 400.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.2569, allocations: 38.7 kB / 401 MB, free: 11.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005984/0.2576, allocations: 0.8647 MB / 401.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.2577, allocations: 212 kB / 402 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.258, allocations: 226 kB / 402.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2581, allocations: 349.9 kB / 402.6 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.2585, allocations: 242.5 kB / 402.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007769/0.2593, allocations: 0.8008 MB / 403.6 MB, free: 9.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.2605, allocations: 1.116 MB / 404.8 MB, free: 8.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.2605, allocations: 6.156 kB / 404.8 MB, free: 8.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001651/0.2622, allocations: 1.172 MB / 405.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.2622, allocations: 42.95 kB / 406 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.2623, allocations: 17.94 kB / 406 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002209/0.2625, allocations: 73.55 kB / 406.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009452/0.2635, allocations: 263.9 kB / 406.3 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.2653, allocations: 2.778 MB / 409.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000795/0.2661, allocations: 63.88 kB / 409.2 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.365e-05/0.2662, allocations: 64 kB / 409.2 MB, free: 4.148 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000432/0.2666, allocations: 368.7 kB / 409.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.2668, allocations: 134.3 kB / 409.7 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009222/0.2677, allocations: 0.5528 MB / 410.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.2677, allocations: 15.98 kB / 410.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.2677, allocations: 0 / 410.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2677, allocations: 0 / 410.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.2701, allocations: 1.863 MB / 412.1 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.2701, allocations: 7.984 kB / 412.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.2705, allocations: 99.89 kB / 412.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.2706, allocations: 58.03 kB / 412.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.2707, allocations: 16 kB / 412.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001731/0.2724, allocations: 2.734 MB / 415.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.2724, allocations: 7.938 kB / 415.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.2737, allocations: 0.9227 MB / 416 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.274, allocations: 267.3 kB / 416.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.2742, allocations: 19.94 kB / 416.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/0.2747, allocations: 31.97 kB / 416.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.2748, allocations: 51.95 kB / 416.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.2748, allocations: 31.98 kB / 416.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009752/0.2758, allocations: 0.8442 MB / 417.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2758, allocations: 0 / 417.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009153/0.2767, allocations: 304 kB / 417.5 MB, free: 11.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.001516/0.2782, allocations: 1.498 MB / 419 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.2796, allocations: 0.9443 MB / 420 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.2796, allocations: 4 kB / 420 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.2802, allocations: 471.2 kB / 420.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.2815, allocations: 338.3 kB / 420.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/0.2947, allocations: 12.18 MB / 432.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006376/0.2953, allocations: 1.178 MB / 434.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005508/0.2959, allocations: 167.3 kB / 434.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005726/0.2965, allocations: 0.5657 MB / 434.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2965, allocations: 0 / 434.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.782/2.078, allocations: 27.21 MB / 462 MB, free: 13.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/15.9, allocations: 11.64 kB / 462.1 MB, free: 13.73 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches