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.001397/0.001397, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001541/0.001541, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.288/1.288, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.1853/0.1853, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.00121, allocations: 62.88 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08883, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01172/0.1006, allocations: 11.68 MB / 481 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006043/0.1067, allocations: 3.882 MB / 484.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.1077, allocations: 79.62 kB / 485 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001714/0.1095, allocations: 0.8731 MB / 485.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.1115, allocations: 0.9512 MB / 486.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000878/0.1123, allocations: 0.5071 MB / 487.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002723/0.1151, allocations: 3.309 MB / 490.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002962/0.1181, allocations: 3.052 MB / 493.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.1197, allocations: 1.542 MB / 495.2 MB, free: 4.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002102/0.1218, allocations: 2.016 MB / 497.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005256/0.1223, allocations: 428 kB / 497.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008399/0.1232, allocations: 0.5272 MB / 498.2 MB, free: 1.273 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009915/0.1242, allocations: 1.231 MB / 499.4 MB, free: 40 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001603/0.1258, allocations: 1.894 MB / 0.4896 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004052/0.1298, allocations: 5.499 MB / 0.4949 GB, free: 8.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1298, allocations: 0 / 0.4949 GB, free: 8.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1299, allocations: 0 / 0.4949 GB, free: 8.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.988e-05/0.1299, allocations: 4 kB / 0.4949 GB, free: 8.617 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.006562/0.1365, allocations: 3.829 MB / 0.4987 GB, free: 4.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1365, allocations: 15.97 kB / 0.4987 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004837/0.137, allocations: 409.2 kB / 0.4991 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008898/0.1379, allocations: 396.5 kB / 0.4995 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002861/0.1408, allocations: 2.02 MB / 0.5014 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.141, allocations: 217.8 kB / 0.5016 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003834/0.1414, allocations: 287.9 kB / 0.5019 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1739/0.3153, allocations: 3.733 MB / 0.5056 GB, free: 45.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-05/0.3154, allocations: 8.266 kB / 0.5056 GB, free: 45.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/0.3156, allocations: 116.4 kB / 0.5057 GB, free: 45.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.3158, allocations: 143.8 kB / 0.5058 GB, free: 45.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0052/0.321, allocations: 3.171 MB / 0.5089 GB, free: 44.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.3365, allocations: 11.57 MB / 0.5202 GB, free: 37.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003313/0.3398, allocations: 2.185 MB / 0.5223 GB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.3416, allocations: 1.222 MB / 0.5235 GB, free: 35.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002491/0.3418, allocations: 210 kB / 0.5237 GB, free: 35.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3419, allocations: 49.53 kB / 0.5238 GB, free: 35.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.507e-06/0.3419, allocations: 0 / 0.5238 GB, free: 35.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01421/0.3561, allocations: 7.866 MB / 0.5315 GB, free: 31.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/0.3561, allocations: 68.72 kB / 0.5315 GB, free: 31.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.3581, allocations: 1.937 MB / 0.5334 GB, free: 29.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.428e-05/0.3582, allocations: 53.7 kB / 0.5335 GB, free: 29.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005454/0.3588, allocations: 1.366 MB / 0.5348 GB, free: 27.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.359, allocations: 0.5222 MB / 0.5353 GB, free: 27.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004097/0.3595, allocations: 319.3 kB / 0.5356 GB, free: 26.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 2.898e-05/0.3595, allocations: 301.1 kB / 0.5359 GB, free: 26.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.3606, allocations: 0.8901 MB / 0.5368 GB, free: 25.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3619, allocations: 1.348 MB / 0.5381 GB, free: 24.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/0.3643, allocations: 2.385 MB / 0.5404 GB, free: 21.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.3643, allocations: 4 kB / 0.5404 GB, free: 21.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003683/0.368, allocations: 2.94 MB / 0.5433 GB, free: 18.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3681, allocations: 8 kB / 0.5433 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.3681, allocations: 16 kB / 0.5433 GB, free: 18.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007453/0.3688, allocations: 387 kB / 0.5437 GB, free: 18.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.3704, allocations: 455.2 kB / 0.5441 GB, free: 17.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004269/0.3746, allocations: 6.767 MB / 0.5507 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.376, allocations: 119.9 kB / 0.5509 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.3761, allocations: 79.98 kB / 0.5509 GB, free: 10.45 MB / 382.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.001081/0.3772, allocations: 0.8993 MB / 0.5518 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.3774, allocations: 209.4 kB / 0.552 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004168/0.3816, allocations: 2.914 MB / 0.5549 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3816, allocations: 16 kB / 0.5549 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3816, allocations: 8 kB / 0.5549 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.3817, allocations: 7.969 kB / 0.5549 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007826/0.3895, allocations: 6.146 MB / 0.5609 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.3895, allocations: 8.406 kB / 0.5609 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.3905, allocations: 243.6 kB / 0.5611 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00194/0.3925, allocations: 0.8055 MB / 0.5619 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.3926, allocations: 39.98 kB / 0.5619 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0118/0.4044, allocations: 10.76 MB / 0.5725 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.4044, allocations: 4 kB / 0.5725 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006357/0.4108, allocations: 4.175 MB / 0.5765 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009109/0.4117, allocations: 486.4 kB / 0.577 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003431/0.4121, allocations: 32 kB / 0.577 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.4132, allocations: 95.88 kB / 0.5771 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.4135, allocations: 129 kB / 0.5772 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.4136, allocations: 47.98 kB / 0.5773 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001891/0.4155, allocations: 1.336 MB / 0.5786 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4155, allocations: 0 / 0.5786 GB, free: 13.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001783/0.4173, allocations: 0.5742 MB / 0.5792 GB, free: 12.86 MB / 414.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.006598/0.4239, allocations: 4.822 MB / 0.5839 GB, free: 7.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005387/0.4293, allocations: 3.305 MB / 0.5871 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4293, allocations: 0 / 0.5871 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002227/0.4316, allocations: 1.632 MB / 0.5887 GB, free: 2.941 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.4339, allocations: 0.5343 MB / 0.5892 GB, free: 2.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03173/0.4656, allocations: 23.95 MB / 0.6126 GB, free: 8.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/0.4678, allocations: 2.217 MB / 0.6148 GB, free: 6.324 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001417/0.4692, allocations: 461.7 kB / 0.6152 GB, free: 5.871 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/0.4706, allocations: 1.144 MB / 0.6163 GB, free: 4.73 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4706, allocations: 3.938 kB / 0.6163 GB, free: 4.727 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08856/0.5592, allocations: 54.41 MB / 0.6695 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.971/10.53, allocations: 18.45 kB / 0.6695 GB, free: 14.76 MB / 0.4981 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