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.0009895/0.0009895, allocations: 113.8 kB / 17.78 MB, free: 5.234 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.0009692/0.0009693, allocations: 183.1 kB / 18.71 MB, free: 4.312 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.278/1.278, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.1958/0.1958, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 59.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3075, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01249/0.32, allocations: 11.68 MB / 0.5298 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007774/0.3278, allocations: 3.892 MB / 0.5336 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.3297, allocations: 73.38 kB / 0.5337 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.3316, allocations: 0.8738 MB / 0.5345 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002834/0.3345, allocations: 0.9465 MB / 0.5355 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.3356, allocations: 0.5154 MB / 0.536 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003784/0.3394, allocations: 3.33 MB / 0.5392 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003399/0.3428, allocations: 3.04 MB / 0.5422 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002225/0.345, allocations: 1.553 MB / 0.5437 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002756/0.3478, allocations: 2.007 MB / 0.5457 GB, free: 32 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007357/0.3485, allocations: 431 kB / 0.5461 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.3499, allocations: 0.5271 MB / 0.5466 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.3511, allocations: 1.239 MB / 0.5478 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001807/0.353, allocations: 1.89 MB / 0.5497 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005116/0.3581, allocations: 5.576 MB / 0.5551 GB, free: 6.371 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3581, allocations: 0 / 0.5551 GB, free: 6.371 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.3581, allocations: 0 / 0.5551 GB, free: 6.371 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.367e-05/0.3582, allocations: 0 / 0.5551 GB, free: 6.371 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.007445/0.3657, allocations: 3.844 MB / 0.5589 GB, free: 2.457 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.3657, allocations: 12.03 kB / 0.5589 GB, free: 2.445 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004714/0.3662, allocations: 409.2 kB / 0.5593 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000894/0.3671, allocations: 388.6 kB / 0.5596 GB, free: 1.652 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00331/0.3704, allocations: 2.083 MB / 0.5617 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.3706, allocations: 217.8 kB / 0.5619 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004019/0.371, allocations: 287.8 kB / 0.5621 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00537/0.3764, allocations: 3.735 MB / 0.5658 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.921e-05/0.3764, allocations: 4 kB / 0.5658 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002469/0.3767, allocations: 116 kB / 0.5659 GB, free: 11.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3768, allocations: 137.5 kB / 0.566 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004818/0.3817, allocations: 3.176 MB / 0.5691 GB, free: 7.773 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01625/0.3979, allocations: 11.44 MB / 0.5803 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.4015, allocations: 2.169 MB / 0.5824 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.4034, allocations: 1.226 MB / 0.5836 GB, free: 8.523 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002914/0.4037, allocations: 219.4 kB / 0.5838 GB, free: 8.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.4038, allocations: 47.88 kB / 0.5839 GB, free: 8.215 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 3.346e-06/0.4038, allocations: 0 / 0.5839 GB, free: 8.215 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01716/0.421, allocations: 7.873 MB / 0.5916 GB, free: 276 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.421, allocations: 68.72 kB / 0.5916 GB, free: 196 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002807/0.4238, allocations: 1.941 MB / 0.5935 GB, free: 14.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.424, allocations: 49.7 kB / 0.5936 GB, free: 14.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008938/0.4249, allocations: 1.37 MB / 0.5949 GB, free: 12.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003992/0.4253, allocations: 0.5159 MB / 0.5954 GB, free: 12.24 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004959/0.4258, allocations: 327.3 kB / 0.5957 GB, free: 11.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4259, allocations: 301.1 kB / 0.596 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.4272, allocations: 0.8862 MB / 0.5969 GB, free: 10.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.4289, allocations: 1.352 MB / 0.5982 GB, free: 9.184 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003075/0.432, allocations: 2.381 MB / 0.6005 GB, free: 6.613 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.8e-06/0.432, allocations: 4 kB / 0.6005 GB, free: 6.609 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004563/0.4366, allocations: 2.944 MB / 0.6034 GB, free: 3.625 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.4366, allocations: 12 kB / 0.6034 GB, free: 3.613 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.4366, allocations: 12 kB / 0.6034 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008775/0.4375, allocations: 391.3 kB / 0.6038 GB, free: 3.207 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/0.4392, allocations: 447.3 kB / 0.6042 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005764/0.4449, allocations: 6.757 MB / 0.6108 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.4464, allocations: 123.9 kB / 0.6109 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4466, allocations: 79.92 kB / 0.611 GB, free: 11.39 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.001443/0.448, allocations: 0.9072 MB / 0.6119 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.4484, allocations: 205.4 kB / 0.6121 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004908/0.4533, allocations: 2.914 MB / 0.6149 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.4533, allocations: 16 kB / 0.615 GB, free: 7.324 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.4534, allocations: 8 kB / 0.615 GB, free: 7.316 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.4534, allocations: 7.969 kB / 0.615 GB, free: 7.309 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00922/0.4626, allocations: 6.126 MB / 0.621 GB, free: 1.055 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.4626, allocations: 7.984 kB / 0.621 GB, free: 1.047 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.4637, allocations: 236.1 kB / 0.6212 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001914/0.4656, allocations: 0.7999 MB / 0.622 GB, free: 8 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.4657, allocations: 52.05 kB / 0.622 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/0.4771, allocations: 10.75 MB / 0.6325 GB, free: 4.781 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/0.4771, allocations: 8.047 kB / 0.6325 GB, free: 4.773 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006144/0.4833, allocations: 4.168 MB / 0.6366 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009634/0.4843, allocations: 490.6 kB / 0.6371 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.4845, allocations: 36.06 kB / 0.6371 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.4856, allocations: 91.89 kB / 0.6372 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/0.4859, allocations: 129 kB / 0.6373 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.516e-05/0.486, allocations: 47.98 kB / 0.6374 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001824/0.4878, allocations: 1.336 MB / 0.6387 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4878, allocations: 0 / 0.6387 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00176/0.4896, allocations: 0.5742 MB / 0.6392 GB, free: 13.79 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.006655/0.4962, allocations: 4.816 MB / 0.6439 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00389/0.5002, allocations: 2.65 MB / 0.6465 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5002, allocations: 0 / 0.6465 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002178/0.5024, allocations: 1.636 MB / 0.6481 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002253/0.5046, allocations: 0.5419 MB / 0.6486 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02934/0.534, allocations: 21.49 MB / 0.6696 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001765/0.5358, allocations: 2.213 MB / 0.6718 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001257/0.537, allocations: 465.7 kB / 0.6722 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/0.5383, allocations: 1.136 MB / 0.6733 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of SimCode: time 8.11e-07/0.5384, allocations: 3.938 kB / 0.6733 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3006/0.839, allocations: 55.53 MB / 0.7276 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/15.17, allocations: 4.062 kB / 0.7276 GB, free: 173.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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