Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009391/0.0009394, allocations: 175.5 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.4 MB / 222.9 MB, free: 8.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007447/0.0007449, allocations: 90.41 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2891/0.2891, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.0003299, allocations: 16 kB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09222, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.009787/0.102, allocations: 10.26 MB / 0.4893 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.2699, allocations: 3.726 MB / 0.493 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.2712, allocations: 59.78 kB / 0.493 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.2727, allocations: 0.6818 MB / 0.4937 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002286/0.275, allocations: 0.8141 MB / 0.4945 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009915/0.276, allocations: 332.9 kB / 0.4948 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00375/0.2798, allocations: 3.368 MB / 0.4981 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002638/0.2824, allocations: 2.516 MB / 0.5006 GB, free: 33.88 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001683/0.2841, allocations: 1.121 MB / 0.5016 GB, free: 33.63 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.286, allocations: 1.595 MB / 0.5032 GB, free: 33.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003406/0.2864, allocations: 171.6 kB / 0.5034 GB, free: 33.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008027/0.2872, allocations: 285.5 kB / 0.5036 GB, free: 33.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007496/0.2879, allocations: 0.9079 MB / 0.5045 GB, free: 33.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.2894, allocations: 1.505 MB / 0.506 GB, free: 32.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003499/0.293, allocations: 4.469 MB / 0.5104 GB, free: 32.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.293, allocations: 3.094 kB / 0.5104 GB, free: 32.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.293, allocations: 0 / 0.5104 GB, free: 32.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001387/0.2931, allocations: 0 / 0.5104 GB, free: 32.41 MB / 378.7 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.005712/0.2989, allocations: 3.206 MB / 0.5135 GB, free: 30.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2989, allocations: 13 kB / 0.5135 GB, free: 30.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009723/0.2999, allocations: 391.1 kB / 0.5139 GB, free: 30.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/0.3027, allocations: 1.947 MB / 0.5158 GB, free: 29.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.3028, allocations: 218.7 kB / 0.516 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003308/0.3032, allocations: 290.5 kB / 0.5163 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005374/0.3086, allocations: 3.715 MB / 0.5199 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.356e-05/0.3086, allocations: 7.375 kB / 0.5199 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002278/0.3089, allocations: 115.3 kB / 0.52 GB, free: 27.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.309, allocations: 143.7 kB / 0.5202 GB, free: 27.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004725/0.3137, allocations: 3.155 MB / 0.5232 GB, free: 26.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01553/0.3293, allocations: 11.6 MB / 0.5346 GB, free: 20.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003207/0.3325, allocations: 2.179 MB / 0.5367 GB, free: 18.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/0.3343, allocations: 1.24 MB / 0.5379 GB, free: 18.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002571/0.3346, allocations: 214.1 kB / 0.5381 GB, free: 18.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.3346, allocations: 49.52 kB / 0.5382 GB, free: 18.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.567e-06/0.3346, allocations: 0 / 0.5382 GB, free: 18.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.01588/0.3505, allocations: 8.256 MB / 0.5462 GB, free: 13.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.3506, allocations: 67.22 kB / 0.5463 GB, free: 13.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002635/0.3532, allocations: 1.934 MB / 0.5482 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.3534, allocations: 51.33 kB / 0.5482 GB, free: 12.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005877/0.354, allocations: 1.354 MB / 0.5495 GB, free: 11.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002725/0.3542, allocations: 0.5314 MB / 0.5501 GB, free: 10.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.3543, allocations: 33.31 kB / 0.5501 GB, free: 10.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.3544, allocations: 373.2 kB / 0.5504 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.3556, allocations: 0.8797 MB / 0.5513 GB, free: 9.844 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.357, allocations: 1.345 MB / 0.5526 GB, free: 8.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002638/0.3596, allocations: 2.375 MB / 0.5549 GB, free: 6.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.3596, allocations: 4 kB / 0.5549 GB, free: 6.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003868/0.3635, allocations: 2.92 MB / 0.5578 GB, free: 3.738 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3635, allocations: 13.97 kB / 0.5578 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3636, allocations: 12 kB / 0.5578 GB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007458/0.3643, allocations: 390.7 kB / 0.5582 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.3658, allocations: 451.2 kB / 0.5586 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004949/0.3707, allocations: 6.207 MB / 0.5647 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.3722, allocations: 123.8 kB / 0.5648 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.3723, allocations: 79.98 kB / 0.5649 GB, free: 12.09 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001676/0.374, allocations: 0.9005 MB / 0.5658 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/0.3744, allocations: 205.5 kB / 0.566 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004838/0.3792, allocations: 2.904 MB / 0.5688 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.3792, allocations: 16 kB / 0.5688 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.3792, allocations: 11.98 kB / 0.5688 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.3793, allocations: 3.984 kB / 0.5688 GB, free: 8.023 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009666/0.3889, allocations: 6.16 MB / 0.5748 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.389, allocations: 9.844 kB / 0.5748 GB, free: 1.758 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009723/0.3899, allocations: 247.6 kB / 0.5751 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/0.3918, allocations: 0.8071 MB / 0.5759 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.392, allocations: 39.98 kB / 0.5759 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/0.403, allocations: 9.832 MB / 0.5855 GB, free: 6.434 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.285e-05/0.403, allocations: 7.938 kB / 0.5855 GB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006642/0.4097, allocations: 4.178 MB / 0.5896 GB, free: 2.164 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.4108, allocations: 494.3 kB / 0.5901 GB, free: 1.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002612/0.4111, allocations: 40.23 kB / 0.5901 GB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009775/0.412, allocations: 103.8 kB / 0.5902 GB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.4123, allocations: 125.1 kB / 0.5903 GB, free: 1.398 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.924e-05/0.4124, allocations: 47.92 kB / 0.5904 GB, free: 1.352 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001979/0.4144, allocations: 1.325 MB / 0.5917 GB, free: 4 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4144, allocations: 4 kB / 0.5917 GB, free: 0 / 410.7 MB Notification: Performance of remove unused functions: time 0.00187/0.4163, allocations: 0.5704 MB / 0.5922 GB, free: 15.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003552/0.4167, allocations: 202.8 kB / 0.5924 GB, free: 15.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003699/0.4204, allocations: 2.636 MB / 0.595 GB, free: 12.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4204, allocations: 0 / 0.595 GB, free: 12.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002201/0.4226, allocations: 1.64 MB / 0.5966 GB, free: 10.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/0.4256, allocations: 0.4981 MB / 0.5971 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.4346, allocations: 6.919 MB / 0.6038 GB, free: 3.359 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001811/0.4364, allocations: 2.186 MB / 0.606 GB, free: 1.145 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006223/0.437, allocations: 171.4 kB / 0.6061 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of SimCode: time 5.31e-07/0.437, allocations: 0 / 0.6061 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of Templates: time 0.2419/0.679, allocations: 84.57 MB / 0.6887 GB, free: 157.1 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches