Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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: 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_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_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009754/0.0009754, allocations: 95.34 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 177.2 kB / 16.57 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3054/0.3054, allocations: 43.55 MB / 314.5 MB, free: 8.988 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005206/0.000521, allocations: 12 kB / 383.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 58.85 MB / 442.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01052/0.1184, allocations: 9.505 MB / 452.2 MB, free: 3.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.195/0.3134, allocations: 3.8 MB / 456 MB, free: 36.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001722/0.3152, allocations: 56.38 kB / 456.1 MB, free: 36.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001975/0.3172, allocations: 0.7213 MB / 456.8 MB, free: 36.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002419/0.3196, allocations: 0.8513 MB / 457.7 MB, free: 36.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.3207, allocations: 344.7 kB / 458 MB, free: 36.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002815/0.3235, allocations: 2.15 MB / 460.2 MB, free: 36.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001747/0.3253, allocations: 2.07 MB / 462.2 MB, free: 36.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.3263, allocations: 1.047 MB / 463.3 MB, free: 36.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.3275, allocations: 1.422 MB / 464.7 MB, free: 36.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002375/0.3278, allocations: 167.6 kB / 464.9 MB, free: 36.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005161/0.3283, allocations: 249.5 kB / 465.1 MB, free: 36.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000675/0.329, allocations: 0.8738 MB / 466 MB, free: 36.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003956/0.3294, allocations: 0.6295 MB / 466.6 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00234/0.3317, allocations: 4.42 MB / 471 MB, free: 35.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.3317, allocations: 0 / 471 MB, free: 35.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3318, allocations: 0 / 471 MB, free: 35.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.214e-05/0.3318, allocations: 0 / 471 MB, free: 35.8 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.004902/0.3367, allocations: 3.223 MB / 474.3 MB, free: 34.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3368, allocations: 9 kB / 474.3 MB, free: 34.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/0.338, allocations: 394.4 kB / 474.6 MB, free: 34.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/0.3416, allocations: 1.906 MB / 476.6 MB, free: 33.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.3418, allocations: 224.2 kB / 476.8 MB, free: 33.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005365/0.3423, allocations: 281.4 kB / 477 MB, free: 33.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005974/0.3483, allocations: 3.672 MB / 480.7 MB, free: 33.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-05/0.3484, allocations: 9.859 kB / 480.7 MB, free: 33.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002365/0.3487, allocations: 116.4 kB / 480.8 MB, free: 33.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.3488, allocations: 143.7 kB / 481 MB, free: 33.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004748/0.3535, allocations: 3.127 MB / 484.1 MB, free: 33.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01751/0.3711, allocations: 11.5 MB / 495.6 MB, free: 27.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.3738, allocations: 2.113 MB / 497.7 MB, free: 26.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002558/0.3741, allocations: 206.5 kB / 497.9 MB, free: 25.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.3741, allocations: 49.94 kB / 498 MB, free: 25.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 2.855e-06/0.3741, allocations: 1.375 kB / 498 MB, free: 25.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01565/0.3898, allocations: 8.148 MB / 0.4943 GB, free: 21.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.3899, allocations: 67.53 kB / 0.4943 GB, free: 21.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002383/0.3922, allocations: 1.875 MB / 0.4962 GB, free: 20.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.3924, allocations: 52.05 kB / 0.4962 GB, free: 20.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006331/0.393, allocations: 1.355 MB / 0.4975 GB, free: 19.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.3933, allocations: 0.5296 MB / 0.498 GB, free: 18.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.731e-05/0.3934, allocations: 35.62 kB / 0.4981 GB, free: 18.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.741e-05/0.3935, allocations: 380.7 kB / 0.4984 GB, free: 18.17 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3946, allocations: 0.8678 MB / 0.4993 GB, free: 17.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.396, allocations: 1.324 MB / 0.5006 GB, free: 16.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.3973, allocations: 1.081 MB / 0.5016 GB, free: 16.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.3974, allocations: 8.516 kB / 0.5016 GB, free: 16.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.003858/0.4012, allocations: 2.866 MB / 0.5044 GB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4013, allocations: 11.22 kB / 0.5045 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.4013, allocations: 14.94 kB / 0.5045 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006815/0.402, allocations: 367.6 kB / 0.5048 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.4035, allocations: 462.8 kB / 0.5053 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004021/0.4075, allocations: 6.113 MB / 0.5112 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.4091, allocations: 119.8 kB / 0.5113 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4093, allocations: 75.98 kB / 0.5114 GB, free: 7.977 MB / 382.1 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 (210): * Single equations (assignments): 206 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001459/0.4107, allocations: 0.9071 MB / 0.5123 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.411, allocations: 209.4 kB / 0.5125 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.415, allocations: 2.884 MB / 0.5153 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.415, allocations: 16 kB / 0.5153 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.415, allocations: 8 kB / 0.5153 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.415, allocations: 7.969 kB / 0.5154 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008884/0.4239, allocations: 6.037 MB / 0.5212 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.424, allocations: 4 kB / 0.5213 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009682/0.4249, allocations: 235.7 kB / 0.5215 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001838/0.4268, allocations: 0.8013 MB / 0.5223 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.4269, allocations: 39.98 kB / 0.5223 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/0.438, allocations: 10.11 MB / 0.5322 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.4381, allocations: 7.938 kB / 0.5322 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006565/0.4446, allocations: 4.36 MB / 0.5364 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.4459, allocations: 486.3 kB / 0.5369 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002617/0.4461, allocations: 38.72 kB / 0.5369 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/0.4471, allocations: 103.9 kB / 0.537 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.4474, allocations: 125 kB / 0.5372 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.937e-05/0.4475, allocations: 47.98 kB / 0.5372 GB, free: 12.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002211/0.4497, allocations: 1.278 MB / 0.5384 GB, free: 11.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4497, allocations: 0 / 0.5384 GB, free: 11.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002204/0.452, allocations: 0.5625 MB / 0.539 GB, free: 10.96 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,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 (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,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002992/0.4523, allocations: 172.9 kB / 0.5392 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003341/0.4556, allocations: 2.581 MB / 0.5417 GB, free: 8.152 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4556, allocations: 320 / 0.5417 GB, free: 8.152 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002299/0.4579, allocations: 1.675 MB / 0.5433 GB, free: 6.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/0.4599, allocations: 494.7 kB / 0.5438 GB, free: 5.965 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/0.4696, allocations: 6.83 MB / 0.5505 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002397/0.472, allocations: 2.276 MB / 0.5527 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00162/0.4736, allocations: 473.6 kB / 0.5531 GB, free: 12.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005167/0.4742, allocations: 147.4 kB / 0.5533 GB, free: 12.15 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4742, allocations: 4 kB / 0.5533 GB, free: 12.14 MB / 430.1 MB Notification: Performance of Templates: time 0.05141/0.5256, allocations: 29.37 MB / 0.582 GB, free: 14.87 MB / 462.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches