Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 112 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2416, allocations: 49.44 MB / 400.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01364/0.2552, allocations: 11.75 MB / 412 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006778/0.2621, allocations: 3.219 MB / 415.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001555/0.2637, allocations: 35.88 kB / 415.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.2654, allocations: 0.6479 MB / 415.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001663/0.2671, allocations: 0.6704 MB / 416.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008588/0.2679, allocations: 407.4 kB / 417 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002379/0.2703, allocations: 2.249 MB / 419.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.2716, allocations: 0.9889 MB / 420.2 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.2726, allocations: 0.8288 MB / 421 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.2737, allocations: 0.9177 MB / 422 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002591/0.274, allocations: 220 kB / 422.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004384/0.2744, allocations: 256 kB / 422.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003439/0.2748, allocations: 430.5 kB / 422.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009552/0.2757, allocations: 1.015 MB / 423.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.2784, allocations: 2.693 MB / 426.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.2784, allocations: 0 / 426.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2784, allocations: 0 / 426.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.871e-05/0.2785, allocations: 0 / 426.5 MB, free: 14.52 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.003283/0.2818, allocations: 2.112 MB / 428.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2818, allocations: 15.89 kB / 428.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002383/0.2821, allocations: 228 kB / 428.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000708/0.2828, allocations: 267.6 kB / 429.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.2843, allocations: 1.049 MB / 430.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.64e-05/0.2845, allocations: 115.2 kB / 430.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.2847, allocations: 160 kB / 430.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/0.287, allocations: 1.483 MB / 432 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.558e-05/0.287, allocations: 11.89 kB / 432 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.2872, allocations: 68 kB / 432 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.167e-05/0.2872, allocations: 44 kB / 432.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.289, allocations: 0.9707 MB / 433 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007467/0.2965, allocations: 6.537 MB / 439.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007894/0.2973, allocations: 404.6 kB / 440 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/0.2977, allocations: 218.1 kB / 440.2 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.2978, allocations: 8.375 kB / 440.2 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004954/0.2983, allocations: 272.8 kB / 440.5 MB, free: 12 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.014e-06/0.2983, allocations: 0 / 440.5 MB, free: 12 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003064/0.3013, allocations: 1.799 MB / 442.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3015, allocations: 162.8 kB / 442.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.3031, allocations: 1.277 MB / 443.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.699e-05/0.3032, allocations: 37.7 kB / 443.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007599/0.3039, allocations: 0.8895 MB / 444.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.3041, allocations: 214.3 kB / 444.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.3044, allocations: 222.8 kB / 445.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3046, allocations: 357.9 kB / 445.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.3051, allocations: 226.5 kB / 445.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009116/0.306, allocations: 0.7995 MB / 446.4 MB, free: 9.602 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.3074, allocations: 1.118 MB / 447.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.3074, allocations: 8 kB / 447.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001979/0.3094, allocations: 1.178 MB / 448.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/0.3095, allocations: 41.7 kB / 448.8 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.3095, allocations: 23.94 kB / 448.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002253/0.3097, allocations: 69.62 kB / 448.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007431/0.3105, allocations: 263.9 kB / 449.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.3127, allocations: 2.777 MB / 451.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009022/0.3136, allocations: 63.89 kB / 452 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/0.3137, allocations: 64 kB / 452 MB, free: 3.426 MB / 366.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.0005536/0.3142, allocations: 361.4 kB / 452.4 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.3144, allocations: 143 kB / 452.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.3155, allocations: 0.545 MB / 453.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3155, allocations: 8 kB / 453.1 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3155, allocations: 0 / 453.1 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3155, allocations: 0 / 453.1 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.3183, allocations: 1.874 MB / 454.9 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3183, allocations: 4 kB / 454.9 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/0.3187, allocations: 104.4 kB / 455 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001516/0.3189, allocations: 49.69 kB / 455.1 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.3189, allocations: 23.88 kB / 455.1 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.321, allocations: 2.738 MB / 457.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3211, allocations: 11.94 kB / 457.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.3226, allocations: 0.9247 MB / 458.8 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000437/0.3231, allocations: 264.1 kB / 459.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.3232, allocations: 23.92 kB / 459.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.3237, allocations: 27.98 kB / 459.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.3238, allocations: 55.88 kB / 459.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.3239, allocations: 16 kB / 459.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.3251, allocations: 0.85 MB / 460 MB, free: 10.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3251, allocations: 0 / 460 MB, free: 10.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001056/0.3262, allocations: 308 kB / 460.3 MB, free: 10.6 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.001931/0.3281, allocations: 1.516 MB / 461.8 MB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.3298, allocations: 0.9203 MB / 462.8 MB, free: 8.043 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3298, allocations: 0 / 462.8 MB, free: 8.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007353/0.3305, allocations: 487.4 kB / 463.2 MB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.332, allocations: 326.8 kB / 463.6 MB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01659/0.3486, allocations: 10.92 MB / 474.5 MB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009206/0.3496, allocations: 1.182 MB / 475.7 MB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000626/0.3502, allocations: 167.3 kB / 475.8 MB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007395/0.351, allocations: 0.5735 MB / 476.4 MB, free: 9.535 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.351, allocations: 3.938 kB / 476.4 MB, free: 9.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2811/0.6321, allocations: 27.74 MB / 0.4923 GB, free: 14.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/13.09, allocations: 19.89 kB / 0.4923 GB, free: 14.12 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches