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.001109/0.001109, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1986/0.1986, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 77.41 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 62.46 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01216/0.1204, allocations: 11.71 MB / 491.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006912/0.1273, allocations: 3.957 MB / 495.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.129, allocations: 71.69 kB / 495.9 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.1309, allocations: 0.8731 MB / 496.7 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002571/0.1335, allocations: 0.959 MB / 497.7 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.1345, allocations: 0.5188 MB / 498.2 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002949/0.1375, allocations: 3.317 MB / 0.4898 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002961/0.1405, allocations: 3.044 MB / 0.4928 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001816/0.1423, allocations: 1.557 MB / 0.4943 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.1446, allocations: 2.001 MB / 0.4962 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000547/0.1452, allocations: 435.9 kB / 0.4966 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009486/0.1461, allocations: 0.5311 MB / 0.4972 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.1472, allocations: 1.235 MB / 0.4984 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00177/0.149, allocations: 1.898 MB / 0.5002 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2004/0.3494, allocations: 5.499 MB / 0.5056 GB, free: 21.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3494, allocations: 3.828 kB / 0.5056 GB, free: 21.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3494, allocations: 1.094 kB / 0.5056 GB, free: 21.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001694/0.3496, allocations: 0 / 0.5056 GB, free: 21.7 MB / 382.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.008817/0.3584, allocations: 3.847 MB / 0.5094 GB, free: 20.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3585, allocations: 10.22 kB / 0.5094 GB, free: 20.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005297/0.359, allocations: 412 kB / 0.5098 GB, free: 20.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.3602, allocations: 401.7 kB / 0.5101 GB, free: 20.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.3634, allocations: 2.021 MB / 0.5121 GB, free: 19.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.3636, allocations: 218.9 kB / 0.5123 GB, free: 19.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004003/0.364, allocations: 289.9 kB / 0.5126 GB, free: 19.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005725/0.3697, allocations: 3.73 MB / 0.5162 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-05/0.3698, allocations: 11.44 kB / 0.5163 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000256/0.3701, allocations: 118.2 kB / 0.5164 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.3702, allocations: 141 kB / 0.5165 GB, free: 19.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005133/0.3754, allocations: 3.169 MB / 0.5196 GB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01479/0.3902, allocations: 11.57 MB / 0.5309 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003136/0.3933, allocations: 2.174 MB / 0.533 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.395, allocations: 1.232 MB / 0.5342 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000246/0.3952, allocations: 210.5 kB / 0.5344 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.3953, allocations: 56.55 kB / 0.5345 GB, free: 10.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.156e-06/0.3953, allocations: 0 / 0.5345 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01422/0.4095, allocations: 7.858 MB / 0.5422 GB, free: 4.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.4096, allocations: 72.72 kB / 0.5422 GB, free: 4.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.4117, allocations: 1.949 MB / 0.5441 GB, free: 2.492 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.763e-05/0.4118, allocations: 53.7 kB / 0.5442 GB, free: 2.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005781/0.4123, allocations: 1.365 MB / 0.5455 GB, free: 1.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.4126, allocations: 0.5262 MB / 0.546 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004148/0.413, allocations: 322.5 kB / 0.5463 GB, free: 228 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.869e-05/0.4131, allocations: 301.1 kB / 0.5466 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.4145, allocations: 0.8901 MB / 0.5475 GB, free: 15.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.4161, allocations: 1.342 MB / 0.5488 GB, free: 13.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003114/0.4192, allocations: 2.387 MB / 0.5511 GB, free: 10.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.4192, allocations: 4 kB / 0.5511 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004459/0.4237, allocations: 2.928 MB / 0.554 GB, free: 8.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4237, allocations: 12 kB / 0.554 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.4238, allocations: 20.41 kB / 0.554 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008554/0.4246, allocations: 401.2 kB / 0.5544 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.4263, allocations: 442.2 kB / 0.5548 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005651/0.4319, allocations: 6.767 MB / 0.5614 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.4334, allocations: 127.8 kB / 0.5616 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.4336, allocations: 71.98 kB / 0.5616 GB, free: 15.94 MB / 414.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.001454/0.4351, allocations: 0.9038 MB / 0.5625 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004088/0.4355, allocations: 213.3 kB / 0.5627 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005002/0.4405, allocations: 2.911 MB / 0.5656 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.4405, allocations: 12 kB / 0.5656 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.4405, allocations: 12 kB / 0.5656 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.4406, allocations: 7.969 kB / 0.5656 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009961/0.4505, allocations: 6.154 MB / 0.5716 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.4506, allocations: 0 / 0.5716 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.4516, allocations: 241 kB / 0.5718 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/0.4536, allocations: 0.8059 MB / 0.5726 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.4538, allocations: 44.81 kB / 0.5727 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/0.4657, allocations: 10.77 MB / 0.5832 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.4658, allocations: 7 kB / 0.5832 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006522/0.4723, allocations: 4.169 MB / 0.5872 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.4734, allocations: 490.4 kB / 0.5877 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005165/0.4739, allocations: 35.98 kB / 0.5877 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/0.4753, allocations: 95.89 kB / 0.5878 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/0.4756, allocations: 122.9 kB / 0.588 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.4757, allocations: 47.98 kB / 0.588 GB, free: 4.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002207/0.4779, allocations: 1.341 MB / 0.5893 GB, free: 3.117 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4779, allocations: 0 / 0.5893 GB, free: 3.117 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001977/0.4799, allocations: 0.5703 MB / 0.5899 GB, free: 2.547 MB / 430.1 MB 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.006738/0.4867, allocations: 4.837 MB / 0.5946 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00552/0.4922, allocations: 3.292 MB / 0.5978 GB, free: 10.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4922, allocations: 8.125 kB / 0.5978 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.4944, allocations: 1.63 MB / 0.5994 GB, free: 8.746 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.4969, allocations: 0.5493 MB / 0.5999 GB, free: 8.207 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03224/0.5291, allocations: 23.98 MB / 0.6234 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/0.5314, allocations: 2.217 MB / 0.6255 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001505/0.5329, allocations: 473.8 kB / 0.626 GB, free: 11.73 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/0.5343, allocations: 1.136 MB / 0.6271 GB, free: 10.6 MB / 478.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5344, allocations: 1.969 kB / 0.6271 GB, free: 10.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09504/0.6294, allocations: 54.5 MB / 0.6803 GB, free: 4.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.768/10.4, allocations: 11.62 kB / 0.6803 GB, free: 4.559 MB / 0.5137 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