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.001052/0.001052, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002907/0.002907, allocations: 80.2 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.416, 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.01417/0.4302, allocations: 11.72 MB / 0.5419 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009768/0.4401, allocations: 3.975 MB / 0.5458 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002965/0.4431, allocations: 74.16 kB / 0.5459 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002885/0.446, allocations: 0.863 MB / 0.5467 GB, free: 160 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003977/0.45, allocations: 0.9506 MB / 0.5477 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.4515, allocations: 0.5119 MB / 0.5482 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005076/0.4565, allocations: 3.356 MB / 0.5514 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003477/0.46, allocations: 3.033 MB / 0.5544 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.4626, allocations: 1.573 MB / 0.5559 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.4651, allocations: 2.008 MB / 0.5579 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005703/0.4657, allocations: 432 kB / 0.5583 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.4667, allocations: 0.5311 MB / 0.5588 GB, free: 4.633 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001142/0.4679, allocations: 1.231 MB / 0.56 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002011/0.4699, allocations: 1.898 MB / 0.5619 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005678/0.4756, allocations: 5.584 MB / 0.5673 GB, free: 11.89 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4756, allocations: 3.938 kB / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4756, allocations: 4 kB / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001193/0.4758, allocations: 0 / 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.007738/0.4835, allocations: 3.841 MB / 0.5711 GB, free: 7.973 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.4836, allocations: 12.03 kB / 0.5711 GB, free: 7.961 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005249/0.4841, allocations: 405.2 kB / 0.5715 GB, free: 7.555 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/0.4852, allocations: 400.5 kB / 0.5719 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003464/0.4887, allocations: 2.098 MB / 0.5739 GB, free: 5.008 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.4889, allocations: 213.8 kB / 0.5741 GB, free: 4.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004006/0.4893, allocations: 284 kB / 0.5744 GB, free: 4.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005868/0.4951, allocations: 3.735 MB / 0.5781 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.669e-05/0.4952, allocations: 15.84 kB / 0.5781 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/0.4955, allocations: 112 kB / 0.5782 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.4956, allocations: 137.5 kB / 0.5783 GB, free: 464 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005131/0.5008, allocations: 3.18 MB / 0.5814 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01771/0.5185, allocations: 11.45 MB / 0.5926 GB, free: 1.512 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003706/0.5222, allocations: 2.157 MB / 0.5947 GB, free: 15.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.5242, allocations: 1.223 MB / 0.5959 GB, free: 14.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000306/0.5245, allocations: 215.3 kB / 0.5961 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.5246, allocations: 47.88 kB / 0.5961 GB, free: 13.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 2.795e-06/0.5246, allocations: 0 / 0.5961 GB, free: 13.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01749/0.5421, allocations: 7.878 MB / 0.6038 GB, free: 5.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.5422, allocations: 68.72 kB / 0.6039 GB, free: 5.691 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/0.5453, allocations: 1.941 MB / 0.6058 GB, free: 3.707 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.5454, allocations: 53.7 kB / 0.6059 GB, free: 3.648 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.5465, allocations: 1.37 MB / 0.6072 GB, free: 2.262 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000475/0.547, allocations: 0.516 MB / 0.6077 GB, free: 1.738 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005277/0.5476, allocations: 323.3 kB / 0.608 GB, free: 1.414 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.5477, allocations: 301.1 kB / 0.6083 GB, free: 1.117 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.549, allocations: 0.8823 MB / 0.6091 GB, free: 240 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.5507, allocations: 1.352 MB / 0.6105 GB, free: 14.68 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003203/0.554, allocations: 2.389 MB / 0.6128 GB, free: 12.11 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.554, allocations: 4 kB / 0.6128 GB, free: 12.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004968/0.559, allocations: 2.94 MB / 0.6157 GB, free: 9.121 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.559, allocations: 8 kB / 0.6157 GB, free: 9.113 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/0.5591, allocations: 16 kB / 0.6157 GB, free: 9.098 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008984/0.56, allocations: 387.4 kB / 0.6161 GB, free: 8.707 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.5616, allocations: 443.3 kB / 0.6165 GB, free: 8.273 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006217/0.5678, allocations: 6.777 MB / 0.6231 GB, free: 1.086 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.5697, allocations: 123.7 kB / 0.6232 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.5699, allocations: 75.98 kB / 0.6233 GB, free: 0.8906 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.001703/0.5716, allocations: 0.9028 MB / 0.6242 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004729/0.5721, allocations: 205.4 kB / 0.6244 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005257/0.5774, allocations: 2.915 MB / 0.6272 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.5774, allocations: 16 kB / 0.6272 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.5774, allocations: 11.98 kB / 0.6273 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.5774, allocations: 3.984 kB / 0.6273 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.5894, allocations: 6.126 MB / 0.6332 GB, free: 6.551 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.5894, allocations: 4 kB / 0.6332 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.5905, allocations: 239.6 kB / 0.6335 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002465/0.593, allocations: 0.8039 MB / 0.6343 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000174/0.5932, allocations: 48.08 kB / 0.6343 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.6062, allocations: 10.75 MB / 0.6448 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.6062, allocations: 7.984 kB / 0.6448 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007183/0.6134, allocations: 4.176 MB / 0.6489 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/0.6147, allocations: 490.4 kB / 0.6494 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005954/0.6153, allocations: 35.98 kB / 0.6494 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.6167, allocations: 91.89 kB / 0.6495 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003509/0.617, allocations: 125 kB / 0.6496 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.6172, allocations: 47.98 kB / 0.6496 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002364/0.6195, allocations: 1.341 MB / 0.651 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6195, allocations: 0 / 0.651 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002294/0.6218, allocations: 0.5742 MB / 0.6515 GB, free: 3.277 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.007429/0.6293, allocations: 4.816 MB / 0.6562 GB, free: 14.38 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.004131/0.6334, allocations: 2.642 MB / 0.6588 GB, free: 11.67 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.709e-06/0.6335, allocations: 0 / 0.6588 GB, free: 11.67 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002407/0.6359, allocations: 1.64 MB / 0.6604 GB, free: 10 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.6387, allocations: 0.5417 MB / 0.6609 GB, free: 9.469 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03445/0.6732, allocations: 21.51 MB / 0.6819 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002566/0.6758, allocations: 2.217 MB / 0.6841 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001445/0.6773, allocations: 469.8 kB / 0.6845 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001573/0.6789, allocations: 1.132 MB / 0.6857 GB, free: 15.39 MB / 0.545 GB Notification: Performance of SimCode: time 5.41e-07/0.6789, allocations: 0 / 0.6857 GB, free: 15.39 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4342/1.113, allocations: 56.3 MB / 0.7406 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/14.37, allocations: 8.141 kB / 0.7406 GB, free: 157.7 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