Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 202.6 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007488/0.0007492, allocations: 95.75 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1803/0.1803, allocations: 44.83 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002325, allocations: 4 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08937/0.08961, allocations: 62.95 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.1841/0.2737, allocations: 10.32 MB / 0.5254 GB, free: 6.621 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.007091/0.2808, allocations: 3.712 MB / 0.529 GB, free: 3.918 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.2833, allocations: 64.66 kB / 0.5291 GB, free: 3.898 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.2853, allocations: 0.6904 MB / 0.5298 GB, free: 3.555 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0026/0.2879, allocations: 0.7993 MB / 0.5305 GB, free: 3.074 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.289, allocations: 334.8 kB / 0.5309 GB, free: 2.891 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003746/0.2928, allocations: 3.308 MB / 0.5341 GB, free: 1.344 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002358/0.2951, allocations: 2.113 MB / 0.5362 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001796/0.2969, allocations: 1.124 MB / 0.5372 GB, free: 72 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0023/0.2993, allocations: 1.588 MB / 0.5388 GB, free: 15.43 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004696/0.2997, allocations: 168.6 kB / 0.539 GB, free: 15.43 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.3008, allocations: 258.1 kB / 0.5392 GB, free: 15.41 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001158/0.3019, allocations: 0.9046 MB / 0.5401 GB, free: 15.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.303, allocations: 0.6298 MB / 0.5407 GB, free: 14.65 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005157/0.3082, allocations: 4.49 MB / 0.5451 GB, free: 11.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3082, allocations: 0 / 0.5451 GB, free: 11.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3082, allocations: 0 / 0.5451 GB, free: 11.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002093/0.3085, allocations: 0.9688 kB / 0.5451 GB, free: 11.73 MB / 362.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.008838/0.3173, allocations: 3.257 MB / 0.5483 GB, free: 9.559 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3174, allocations: 9.125 kB / 0.5483 GB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001646/0.319, allocations: 412 kB / 0.5487 GB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003689/0.3227, allocations: 1.954 MB / 0.5506 GB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.3229, allocations: 221.7 kB / 0.5508 GB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004608/0.3234, allocations: 285.2 kB / 0.5511 GB, free: 7.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006902/0.3303, allocations: 3.718 MB / 0.5547 GB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.461e-05/0.3304, allocations: 7.906 kB / 0.5547 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000262/0.3307, allocations: 116 kB / 0.5548 GB, free: 5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.3308, allocations: 145.4 kB / 0.555 GB, free: 4.855 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005311/0.3361, allocations: 3.156 MB / 0.558 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/0.3528, allocations: 11.61 MB / 0.5694 GB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003533/0.3564, allocations: 2.186 MB / 0.5715 GB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/0.3583, allocations: 1.242 MB / 0.5727 GB, free: 2.234 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000288/0.3586, allocations: 215.5 kB / 0.5729 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.3587, allocations: 43.88 kB / 0.573 GB, free: 1.934 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.637e-06/0.3587, allocations: 0 / 0.573 GB, free: 1.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.01729/0.376, allocations: 7.871 MB / 0.5807 GB, free: 9.992 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.376, allocations: 72.72 kB / 0.5807 GB, free: 9.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/0.3794, allocations: 1.941 MB / 0.5826 GB, free: 7.926 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.3796, allocations: 49.7 kB / 0.5827 GB, free: 7.871 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009832/0.3806, allocations: 1.359 MB / 0.584 GB, free: 6.496 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004687/0.3811, allocations: 0.5237 MB / 0.5845 GB, free: 5.965 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.3812, allocations: 36 kB / 0.5845 GB, free: 5.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3814, allocations: 381.8 kB / 0.5849 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.3828, allocations: 0.8823 MB / 0.5858 GB, free: 4.668 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001713/0.3846, allocations: 1.34 MB / 0.5871 GB, free: 3.141 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001797/0.3864, allocations: 1.096 MB / 0.5881 GB, free: 2.043 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/0.3864, allocations: 4 kB / 0.5881 GB, free: 2.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005264/0.3917, allocations: 2.92 MB / 0.591 GB, free: 15.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.3917, allocations: 8.406 kB / 0.591 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/0.3917, allocations: 20 kB / 0.591 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009298/0.3927, allocations: 393.6 kB / 0.5914 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.3944, allocations: 455.2 kB / 0.5918 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00578/0.4002, allocations: 6.195 MB / 0.5979 GB, free: 7.613 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.4022, allocations: 123.8 kB / 0.598 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002792/0.4025, allocations: 79.98 kB / 0.5981 GB, free: 7.414 MB / 410.7 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 (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.002045/0.4045, allocations: 0.8954 MB / 0.599 GB, free: 6.508 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000689/0.4052, allocations: 209.4 kB / 0.5992 GB, free: 6.301 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005509/0.4107, allocations: 2.915 MB / 0.602 GB, free: 3.363 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.4108, allocations: 16 kB / 0.602 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.4108, allocations: 8 kB / 0.602 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.4108, allocations: 7.969 kB / 0.602 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/0.4233, allocations: 6.158 MB / 0.608 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.4233, allocations: 4 kB / 0.608 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.4244, allocations: 239.6 kB / 0.6083 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/0.4265, allocations: 0.801 MB / 0.6091 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.4267, allocations: 43.97 kB / 0.6091 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.4382, allocations: 9.845 MB / 0.6187 GB, free: 1.699 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.4383, allocations: 4 kB / 0.6187 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007549/0.4458, allocations: 4.163 MB / 0.6228 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/0.4474, allocations: 498.3 kB / 0.6233 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006516/0.4481, allocations: 35.98 kB / 0.6233 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.4496, allocations: 99.89 kB / 0.6234 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002902/0.4499, allocations: 121 kB / 0.6235 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.4501, allocations: 47.98 kB / 0.6235 GB, free: 12.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00259/0.4527, allocations: 1.325 MB / 0.6248 GB, free: 11.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4527, allocations: 0 / 0.6248 GB, free: 11.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003053/0.4558, allocations: 0.582 MB / 0.6254 GB, free: 10.72 MB / 442.7 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 (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.0004391/0.4562, allocations: 165 kB / 0.6256 GB, free: 10.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004192/0.4604, allocations: 2.628 MB / 0.6281 GB, free: 7.867 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.4604, allocations: 0 / 0.6281 GB, free: 7.867 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002369/0.4628, allocations: 1.647 MB / 0.6297 GB, free: 6.188 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/0.4664, allocations: 0.517 MB / 0.6302 GB, free: 5.676 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.4771, allocations: 6.9 MB / 0.637 GB, free: 14.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002189/0.4793, allocations: 2.19 MB / 0.6391 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008159/0.4801, allocations: 163.4 kB / 0.6393 GB, free: 12.32 MB / 458.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4801, allocations: 0 / 0.6393 GB, free: 12.32 MB / 458.7 MB Notification: Performance of Templates: time 0.2592/0.7394, allocations: 84.74 MB / 0.722 GB, free: 169.4 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches