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.001086/0.001086, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.42 kB / 307.1 MB, free: 472 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07893/0.08016, allocations: 50.54 MB / 357.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01178/0.09197, allocations: 11.75 MB / 369.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1429/0.2349, allocations: 3.263 MB / 372.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009909/0.2359, allocations: 37.72 kB / 372.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.2374, allocations: 0.6418 MB / 373.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.2387, allocations: 0.6756 MB / 374 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006806/0.2393, allocations: 397.3 kB / 374.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001787/0.2411, allocations: 2.234 MB / 376.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.2422, allocations: 0.9885 MB / 377.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009297/0.2432, allocations: 0.8386 MB / 378.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007989/0.244, allocations: 0.9126 MB / 379.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002429/0.2442, allocations: 216 kB / 379.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.2447, allocations: 254.1 kB / 379.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000248/0.2449, allocations: 428.9 kB / 380.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007465/0.2457, allocations: 1.017 MB / 381.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002186/0.2479, allocations: 2.654 MB / 383.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2479, allocations: 0 / 383.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2479, allocations: 1.156 kB / 383.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.23e-05/0.2479, allocations: 4 kB / 383.9 MB, free: 7.402 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.002976/0.2509, allocations: 2.06 MB / 385.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.251, allocations: 8.812 kB / 386 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002087/0.2512, allocations: 227.8 kB / 386.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007466/0.2519, allocations: 256.2 kB / 386.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.2532, allocations: 1.022 MB / 387.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.406e-05/0.2533, allocations: 118.3 kB / 387.6 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/0.2535, allocations: 165 kB / 387.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002056/0.2555, allocations: 1.486 MB / 389.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.464e-05/0.2556, allocations: 11.5 kB / 389.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.2557, allocations: 64.67 kB / 389.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.2557, allocations: 39.12 kB / 389.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.2575, allocations: 0.9779 MB / 390.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006499/0.264, allocations: 6.565 MB / 396.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007851/0.2648, allocations: 398.9 kB / 397.3 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/0.2652, allocations: 222.9 kB / 397.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.2652, allocations: 5.938 kB / 397.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005188/0.2658, allocations: 265.5 kB / 397.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.2658, allocations: 3.938 kB / 397.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003016/0.2688, allocations: 1.766 MB / 399.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.2689, allocations: 161.1 kB / 399.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.2705, allocations: 1.275 MB / 400.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.2705, allocations: 38.73 kB / 401 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005672/0.2711, allocations: 0.8648 MB / 401.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.2712, allocations: 210 kB / 402 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.2715, allocations: 217 kB / 402.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2716, allocations: 360.7 kB / 402.6 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.272, allocations: 227 kB / 402.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007553/0.2728, allocations: 0.8129 MB / 403.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.274, allocations: 1.109 MB / 404.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.2741, allocations: 5.438 kB / 404.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001742/0.2758, allocations: 1.17 MB / 405.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.2759, allocations: 43.5 kB / 406 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.2759, allocations: 21.19 kB / 406 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.2761, allocations: 71.44 kB / 406.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007415/0.2768, allocations: 266.3 kB / 406.3 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.2786, allocations: 2.783 MB / 409.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008433/0.2795, allocations: 63.89 kB / 409.2 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.2796, allocations: 67.92 kB / 409.2 MB, free: 4.145 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.0004573/0.28, allocations: 365.3 kB / 409.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.2802, allocations: 134.3 kB / 409.7 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.2812, allocations: 0.5528 MB / 410.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.2812, allocations: 4 kB / 410.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2812, allocations: 0 / 410.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.2812, allocations: 7.984 kB / 410.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.2838, allocations: 1.874 MB / 412.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/0.2838, allocations: 4 kB / 412.2 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.2842, allocations: 103.9 kB / 412.3 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.2844, allocations: 41.7 kB / 412.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.2844, allocations: 12 kB / 412.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.2861, allocations: 2.753 MB / 415.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.2861, allocations: 11.88 kB / 415.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.2874, allocations: 0.916 MB / 416 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003312/0.2878, allocations: 259.3 kB / 416.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.288, allocations: 23.92 kB / 416.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000541/0.2885, allocations: 31.98 kB / 416.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.2886, allocations: 51.86 kB / 416.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.2886, allocations: 20 kB / 416.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001074/0.2897, allocations: 0.85 MB / 417.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2897, allocations: 3.938 kB / 417.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001004/0.2907, 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.001676/0.2924, allocations: 1.498 MB / 419 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2939, allocations: 0.9491 MB / 420 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2939, allocations: 0 / 420 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006428/0.2946, allocations: 469.1 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.001467/0.296, allocations: 337.4 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.0144/0.3104, allocations: 12.16 MB / 432.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007054/0.3112, allocations: 1.182 MB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006341/0.3118, allocations: 179.3 kB / 434.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006197/0.3124, allocations: 0.5696 MB / 434.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3124, allocations: 0 / 434.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0515/0.364, allocations: 27.2 MB / 462.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.388/9.752, allocations: 14.95 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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