Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001851/0.001851, allocations: 117.7 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002085/0.002085, allocations: 203.8 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2638/0.2638, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 79.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4022, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01609/0.4183, allocations: 11.72 MB / 0.5419 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009599/0.4279, allocations: 3.98 MB / 0.5458 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003722/0.4317, allocations: 76.38 kB / 0.5459 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003023/0.4348, allocations: 0.8553 MB / 0.5467 GB, free: 164 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004825/0.4397, allocations: 0.954 MB / 0.5477 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.4412, allocations: 0.5159 MB / 0.5482 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005545/0.4467, allocations: 3.351 MB / 0.5514 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003663/0.4504, allocations: 3.037 MB / 0.5544 GB, free: 9.176 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003419/0.4538, allocations: 1.573 MB / 0.556 GB, free: 7.598 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004194/0.4581, allocations: 2.005 MB / 0.5579 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006711/0.4587, allocations: 432 kB / 0.5583 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.46, allocations: 0.5389 MB / 0.5588 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001325/0.4613, allocations: 1.231 MB / 0.56 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002144/0.4635, allocations: 1.898 MB / 0.5619 GB, free: 1.484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006669/0.4702, allocations: 5.584 MB / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.4702, allocations: 0 / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.4702, allocations: 0 / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001389/0.4704, allocations: 3.938 kB / 0.5674 GB, free: 11.88 MB / 430.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.009165/0.4795, allocations: 3.845 MB / 0.5711 GB, free: 7.965 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.4796, allocations: 8.031 kB / 0.5711 GB, free: 7.957 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000566/0.4802, allocations: 409.2 kB / 0.5715 GB, free: 7.547 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.4814, allocations: 400.5 kB / 0.5719 GB, free: 7.152 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004396/0.4858, allocations: 2.09 MB / 0.5739 GB, free: 5.008 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.486, allocations: 221.8 kB / 0.5741 GB, free: 4.789 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004682/0.4865, allocations: 276 kB / 0.5744 GB, free: 4.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006597/0.4931, allocations: 3.743 MB / 0.5781 GB, free: 0.707 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.824e-05/0.4932, allocations: 7.906 kB / 0.5781 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/0.4934, allocations: 112 kB / 0.5782 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.4936, allocations: 145.4 kB / 0.5783 GB, free: 456 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005242/0.4988, allocations: 3.176 MB / 0.5814 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/0.5168, allocations: 11.44 MB / 0.5926 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003714/0.5206, allocations: 2.161 MB / 0.5947 GB, free: 15.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/0.5226, allocations: 1.227 MB / 0.5959 GB, free: 14.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000362/0.523, allocations: 215.5 kB / 0.5961 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.5231, allocations: 47.88 kB / 0.5961 GB, free: 13.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 4.508e-06/0.5231, allocations: 0 / 0.5961 GB, free: 13.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01712/0.5402, allocations: 7.872 MB / 0.6038 GB, free: 5.773 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.5403, allocations: 72.66 kB / 0.6039 GB, free: 5.691 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003152/0.5435, allocations: 1.945 MB / 0.6058 GB, free: 3.703 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.5436, allocations: 49.7 kB / 0.6059 GB, free: 3.648 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009949/0.5446, allocations: 1.374 MB / 0.6072 GB, free: 2.258 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005138/0.5451, allocations: 0.5198 MB / 0.6077 GB, free: 1.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005227/0.5456, allocations: 319.3 kB / 0.608 GB, free: 1.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5458, allocations: 305.1 kB / 0.6083 GB, free: 1.109 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.5471, allocations: 0.8901 MB / 0.6092 GB, free: 224 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.5488, allocations: 1.344 MB / 0.6105 GB, free: 14.68 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/0.5521, allocations: 2.385 MB / 0.6128 GB, free: 12.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/0.5521, allocations: 4 kB / 0.6128 GB, free: 12.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005063/0.5572, allocations: 2.944 MB / 0.6157 GB, free: 9.113 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.5572, allocations: 12 kB / 0.6157 GB, free: 9.102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.999e-05/0.5573, allocations: 12 kB / 0.6157 GB, free: 9.09 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000965/0.5582, allocations: 387.3 kB / 0.6161 GB, free: 8.699 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/0.5599, allocations: 443.3 kB / 0.6165 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006567/0.5665, allocations: 6.765 MB / 0.6231 GB, free: 1.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002099/0.5686, allocations: 127.7 kB / 0.6232 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.5688, allocations: 72 kB / 0.6233 GB, free: 0.8945 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.002109/0.5709, allocations: 0.9025 MB / 0.6242 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005752/0.5715, allocations: 209.4 kB / 0.6244 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005147/0.5767, allocations: 2.919 MB / 0.6272 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.5767, allocations: 16 kB / 0.6272 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.5767, allocations: 8 kB / 0.6273 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.5767, allocations: 7.969 kB / 0.6273 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.5876, allocations: 6.126 MB / 0.6332 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.5877, allocations: 4 kB / 0.6332 GB, free: 6.543 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.5887, allocations: 239.6 kB / 0.6335 GB, free: 6.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002069/0.5908, allocations: 0.8078 MB / 0.6343 GB, free: 5.492 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.5909, allocations: 43.97 kB / 0.6343 GB, free: 5.449 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.6029, allocations: 10.76 MB / 0.6448 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6029, allocations: 4.156 kB / 0.6448 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006484/0.6094, allocations: 4.168 MB / 0.6489 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/0.6106, allocations: 490.4 kB / 0.6494 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004768/0.6111, allocations: 35.98 kB / 0.6494 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.6124, allocations: 91.89 kB / 0.6495 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000297/0.6127, allocations: 129 kB / 0.6496 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.751e-05/0.6128, allocations: 47.98 kB / 0.6496 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001949/0.6148, allocations: 1.34 MB / 0.651 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6148, allocations: 0 / 0.651 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002029/0.6168, allocations: 0.5781 MB / 0.6515 GB, free: 3.273 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.006568/0.6234, allocations: 4.816 MB / 0.6562 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003833/0.6272, allocations: 2.646 MB / 0.6588 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.6273, allocations: 0 / 0.6588 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002235/0.6295, allocations: 1.639 MB / 0.6604 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00288/0.6324, allocations: 0.5421 MB / 0.6609 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/0.6655, allocations: 21.51 MB / 0.6819 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002094/0.6677, allocations: 2.217 MB / 0.6841 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001686/0.6694, allocations: 469.9 kB / 0.6846 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.6709, allocations: 1.136 MB / 0.6857 GB, free: 15.39 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/0.6709, allocations: 0 / 0.6857 GB, free: 15.39 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4407/1.112, allocations: 56.31 MB / 0.7406 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.53, allocations: 11.39 kB / 0.7407 GB, free: 157.5 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches