Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.001063/0.001063, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001126/0.001125, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2074/0.2074, allocations: 44.18 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.89 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.321, allocations: 60.83 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01257/0.3337, allocations: 11.66 MB / 0.5298 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007734/0.3414, allocations: 3.895 MB / 0.5336 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001716/0.3432, allocations: 73.06 kB / 0.5337 GB, free: 7.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.3453, allocations: 0.9269 MB / 0.5346 GB, free: 7.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002677/0.348, allocations: 1.001 MB / 0.5356 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3491, allocations: 0.5107 MB / 0.5361 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003324/0.3524, allocations: 3.336 MB / 0.5393 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003246/0.3557, allocations: 3.04 MB / 0.5423 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.3579, allocations: 1.567 MB / 0.5438 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.3605, allocations: 2.001 MB / 0.5458 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005263/0.361, allocations: 432 kB / 0.5462 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009212/0.3619, allocations: 0.5311 MB / 0.5467 GB, free: 15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.363, allocations: 1.227 MB / 0.5479 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001794/0.3648, allocations: 1.901 MB / 0.5498 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006006/0.3708, allocations: 5.602 MB / 0.5552 GB, free: 6.242 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3708, allocations: 0 / 0.5552 GB, free: 6.242 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3708, allocations: 0 / 0.5552 GB, free: 6.242 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.115e-05/0.3709, allocations: 0 / 0.5552 GB, free: 6.242 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.00752/0.3784, allocations: 3.931 MB / 0.5591 GB, free: 2.238 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3785, allocations: 8.031 kB / 0.5591 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004803/0.379, allocations: 405.2 kB / 0.5595 GB, free: 1.824 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009333/0.3799, allocations: 418.5 kB / 0.5599 GB, free: 1.414 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003558/0.3835, allocations: 2.084 MB / 0.5619 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.3837, allocations: 225.8 kB / 0.5621 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004149/0.3841, allocations: 280 kB / 0.5624 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006126/0.3902, allocations: 3.739 MB / 0.566 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-05/0.3903, allocations: 7.953 kB / 0.566 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.3906, allocations: 112 kB / 0.5662 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/0.3908, allocations: 145.5 kB / 0.5663 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005206/0.396, allocations: 3.172 MB / 0.5694 GB, free: 7.523 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01801/0.414, allocations: 11.47 MB / 0.5806 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003561/0.4176, allocations: 2.173 MB / 0.5827 GB, free: 9.473 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.4195, allocations: 1.234 MB / 0.5839 GB, free: 8.238 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000283/0.4198, allocations: 215.4 kB / 0.5841 GB, free: 7.988 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.4198, allocations: 51.88 kB / 0.5842 GB, free: 7.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 3.236e-06/0.4198, allocations: 0 / 0.5842 GB, free: 7.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01638/0.4362, allocations: 7.91 MB / 0.5919 GB, free: 15.95 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.4363, allocations: 68.72 kB / 0.592 GB, free: 15.87 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002677/0.439, allocations: 1.945 MB / 0.5939 GB, free: 13.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.4391, allocations: 49.7 kB / 0.5939 GB, free: 13.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009692/0.4401, allocations: 1.405 MB / 0.5953 GB, free: 12.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004387/0.4405, allocations: 0.5461 MB / 0.5958 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005218/0.4411, allocations: 319.5 kB / 0.5961 GB, free: 11.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.4412, allocations: 305.1 kB / 0.5964 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.4426, allocations: 0.8862 MB / 0.5973 GB, free: 10.35 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/0.4443, allocations: 1.348 MB / 0.5986 GB, free: 8.809 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/0.4474, allocations: 2.389 MB / 0.6009 GB, free: 6.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.4475, allocations: 4 kB / 0.6009 GB, free: 6.227 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005857/0.4533, allocations: 2.945 MB / 0.6038 GB, free: 3.242 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.4534, allocations: 12 kB / 0.6038 GB, free: 3.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/0.4534, allocations: 12 kB / 0.6038 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/0.455, allocations: 391.5 kB / 0.6042 GB, free: 2.824 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/0.4575, allocations: 447.3 kB / 0.6046 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008161/0.4657, allocations: 6.765 MB / 0.6112 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/0.4682, allocations: 120 kB / 0.6113 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002643/0.4685, allocations: 79.92 kB / 0.6114 GB, free: 11.01 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002381/0.4709, allocations: 0.9032 MB / 0.6123 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008102/0.4718, allocations: 222.5 kB / 0.6125 GB, free: 9.879 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00814/0.4799, allocations: 2.907 MB / 0.6154 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.406e-05/0.48, allocations: 16 kB / 0.6154 GB, free: 6.938 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-05/0.48, allocations: 8 kB / 0.6154 GB, free: 6.93 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.517e-05/0.48, allocations: 7.969 kB / 0.6154 GB, free: 6.922 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.4944, allocations: 6.138 MB / 0.6214 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.4944, allocations: 4 kB / 0.6214 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4955, allocations: 235.6 kB / 0.6216 GB, free: 428 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002118/0.4976, allocations: 0.8078 MB / 0.6224 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.4978, allocations: 39.98 kB / 0.6224 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01309/0.5109, allocations: 10.76 MB / 0.6329 GB, free: 4.379 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.5109, allocations: 8.047 kB / 0.633 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007497/0.5184, allocations: 4.185 MB / 0.637 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/0.5198, allocations: 491.8 kB / 0.6375 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005784/0.5204, allocations: 39.94 kB / 0.6375 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.5218, allocations: 95.88 kB / 0.6376 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.5221, allocations: 124.8 kB / 0.6378 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5222, allocations: 43.98 kB / 0.6378 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002605/0.5248, allocations: 1.34 MB / 0.6391 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5248, allocations: 0 / 0.6391 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0025/0.5274, allocations: 0.5781 MB / 0.6397 GB, free: 13.37 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * 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 (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00734/0.5347, allocations: 4.825 MB / 0.6444 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004266/0.539, allocations: 2.652 MB / 0.647 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.539, allocations: 8.062 kB / 0.647 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.5415, allocations: 1.646 MB / 0.6486 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/0.5445, allocations: 0.5389 MB / 0.6491 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03516/0.5797, allocations: 21.59 MB / 0.6702 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002476/0.5822, allocations: 2.221 MB / 0.6724 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001484/0.5837, allocations: 473.7 kB / 0.6728 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/0.5854, allocations: 1.136 MB / 0.6739 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.5854, allocations: 0 / 0.6739 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3187/0.904, allocations: 55.52 MB / 0.7281 GB, free: 173.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/13.35, allocations: 7.922 kB / 0.7282 GB, free: 173.5 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches