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.001608/0.001608, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002016/0.002016, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2665, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01298/0.2795, allocations: 11.76 MB / 420.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005957/0.2855, allocations: 3.25 MB / 423.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.2866, allocations: 35.94 kB / 423.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001547/0.2882, allocations: 0.644 MB / 424.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.2897, allocations: 0.6782 MB / 425.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007631/0.2905, allocations: 399.5 kB / 425.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002396/0.2929, allocations: 2.246 MB / 427.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001288/0.2942, allocations: 1.001 MB / 428.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.2954, allocations: 0.8443 MB / 429.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009389/0.2963, allocations: 0.91 MB / 430.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002399/0.2966, allocations: 216 kB / 430.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000392/0.297, allocations: 256 kB / 431 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002991/0.2973, allocations: 438.4 kB / 431.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009063/0.2982, allocations: 1.015 MB / 432.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002523/0.3008, allocations: 2.682 MB / 435.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3008, allocations: 0 / 435.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3008, allocations: 0 / 435.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.689e-05/0.3008, allocations: 0 / 435.1 MB, free: 7.051 MB / 350.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.003509/0.3043, allocations: 2.068 MB / 437.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3044, allocations: 12.03 kB / 437.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002374/0.3046, allocations: 220 kB / 437.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007533/0.3054, allocations: 262.5 kB / 437.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.3071, allocations: 1.04 MB / 438.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.303e-05/0.3072, allocations: 119.2 kB / 438.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002015/0.3074, allocations: 159.9 kB / 439 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.3097, allocations: 1.48 MB / 440.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.23e-05/0.3098, allocations: 11.84 kB / 440.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.3099, allocations: 64 kB / 440.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.249e-05/0.31, allocations: 40 kB / 440.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.3117, allocations: 0.9747 MB / 441.5 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007418/0.3192, allocations: 6.531 MB / 448.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000795/0.32, allocations: 400.2 kB / 448.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004176/0.3204, allocations: 214.1 kB / 448.7 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.3205, allocations: 8.438 kB / 448.7 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005064/0.321, allocations: 272.8 kB / 448.9 MB, free: 8.625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.524e-06/0.321, allocations: 4 kB / 448.9 MB, free: 8.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003099/0.3241, allocations: 1.754 MB / 450.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.382e-05/0.3242, allocations: 166.7 kB / 450.9 MB, free: 6.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.3259, allocations: 1.277 MB / 452.1 MB, free: 5.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/0.3259, allocations: 37.7 kB / 452.2 MB, free: 5.238 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006276/0.3265, allocations: 0.8712 MB / 453 MB, free: 4.355 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.3267, allocations: 205.2 kB / 453.2 MB, free: 4.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.327, allocations: 218.6 kB / 453.5 MB, free: 3.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3271, allocations: 357.9 kB / 453.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.3276, allocations: 234.5 kB / 454 MB, free: 3.348 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000796/0.3284, allocations: 0.7956 MB / 454.8 MB, free: 2.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.3297, allocations: 1.118 MB / 456 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.3297, allocations: 7.938 kB / 456 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001904/0.3317, allocations: 1.177 MB / 457.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.133e-05/0.3317, allocations: 40.83 kB / 457.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.3318, allocations: 23.94 kB / 457.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.332, allocations: 61.7 kB / 457.3 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007957/0.3328, allocations: 271.6 kB / 457.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.3349, allocations: 2.769 MB / 460.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009991/0.336, allocations: 71.94 kB / 460.4 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-05/0.336, allocations: 60 kB / 460.4 MB, free: 12.11 MB / 382.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.0005671/0.3366, allocations: 372.8 kB / 460.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.3368, allocations: 142.2 kB / 460.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.3378, allocations: 0.545 MB / 461.5 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.3379, allocations: 8 kB / 461.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3379, allocations: 3.984 kB / 461.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3379, allocations: 0 / 461.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.3405, allocations: 1.87 MB / 463.4 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.3405, allocations: 4 kB / 463.4 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.341, allocations: 108.3 kB / 463.5 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000141/0.3411, allocations: 41.7 kB / 463.5 MB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.3412, allocations: 19.98 kB / 463.5 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.3431, allocations: 2.742 MB / 466.3 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3431, allocations: 4 kB / 466.3 MB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.3446, allocations: 0.9239 MB / 467.2 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004286/0.345, allocations: 259.5 kB / 467.4 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.3452, allocations: 16 kB / 467.5 MB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005211/0.3457, allocations: 32.09 kB / 467.5 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.3458, allocations: 47.83 kB / 467.5 MB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.3458, allocations: 35.97 kB / 467.6 MB, free: 4.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00116/0.347, allocations: 0.8461 MB / 468.4 MB, free: 3.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.347, allocations: 0 / 468.4 MB, free: 3.582 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00112/0.3481, allocations: 304 kB / 468.7 MB, free: 3.285 MB / 382.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.001809/0.35, allocations: 1.5 MB / 470.2 MB, free: 1.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.3515, allocations: 0.9167 MB / 471.1 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3515, allocations: 0 / 471.1 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006759/0.3522, allocations: 483.1 kB / 471.6 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.3537, allocations: 337.3 kB / 471.9 MB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.3691, allocations: 10.87 MB / 482.8 MB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000822/0.3699, allocations: 1.178 MB / 484 MB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005856/0.3705, allocations: 171.3 kB / 484.2 MB, free: 2.871 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006859/0.3712, allocations: 0.5696 MB / 484.7 MB, free: 2.301 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3712, allocations: 0 / 484.7 MB, free: 2.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06032/0.4316, allocations: 28.19 MB / 0.5009 GB, free: 6.445 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.27, allocations: 12.03 kB / 0.5009 GB, free: 6.434 MB / 430.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