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.002292/0.002298, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001148/0.001148, allocations: 95.31 kB / 270.9 MB, free: 8.371 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.5238/0.5238, allocations: 43.56 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004651/0.0004654, allocations: 8 kB / 431.4 MB, free: 5.957 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1309, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01716/0.1481, allocations: 9.488 MB / 499.7 MB, free: 1.492 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3444/0.4925, allocations: 3.807 MB / 0.4917 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003219/0.4958, allocations: 58.75 kB / 0.4918 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003959/0.4998, allocations: 0.7216 MB / 0.4925 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00508/0.505, allocations: 0.8466 MB / 0.4933 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002478/0.5075, allocations: 342.5 kB / 0.4936 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006396/0.5139, allocations: 2.159 MB / 0.4957 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004964/0.5189, allocations: 2.067 MB / 0.4977 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.522, allocations: 1.051 MB / 0.4988 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003755/0.5258, allocations: 1.421 MB / 0.5002 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001126/0.5269, allocations: 167.5 kB / 0.5003 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002285/0.5293, allocations: 254.4 kB / 0.5006 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002028/0.5313, allocations: 0.8706 MB / 0.5014 GB, free: 34.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00201/0.5334, allocations: 0.6281 MB / 0.502 GB, free: 34.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007689/0.5411, allocations: 4.421 MB / 0.5063 GB, free: 33.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.5412, allocations: 0 / 0.5063 GB, free: 33.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.687e-06/0.5412, allocations: 1.422 kB / 0.5063 GB, free: 33.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002354/0.5415, allocations: 0 / 0.5063 GB, free: 33.86 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.01204/0.5535, allocations: 3.225 MB / 0.5095 GB, free: 32.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.5536, allocations: 9.844 kB / 0.5095 GB, free: 32.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00254/0.5562, allocations: 396.8 kB / 0.5099 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006697/0.5629, allocations: 1.903 MB / 0.5117 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004125/0.5634, allocations: 221.8 kB / 0.5119 GB, free: 31.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.5648, allocations: 285.1 kB / 0.5122 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01298/0.5778, allocations: 3.669 MB / 0.5158 GB, free: 30.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001689/0.578, allocations: 7.75 kB / 0.5158 GB, free: 30.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009842/0.579, allocations: 118.2 kB / 0.5159 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002261/0.5793, allocations: 147.4 kB / 0.5161 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01146/0.5907, allocations: 3.127 MB / 0.5191 GB, free: 28.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03562/0.6264, allocations: 11.49 MB / 0.5303 GB, free: 23.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005755/0.6322, allocations: 2.115 MB / 0.5324 GB, free: 21.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005091/0.6328, allocations: 205.9 kB / 0.5326 GB, free: 21.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.6329, allocations: 53.84 kB / 0.5327 GB, free: 21.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 4.859e-06/0.6329, allocations: 0 / 0.5327 GB, free: 21.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.03636/0.6692, allocations: 8.159 MB / 0.5406 GB, free: 17.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.6694, allocations: 71.33 kB / 0.5407 GB, free: 17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005228/0.6746, allocations: 1.871 MB / 0.5425 GB, free: 15.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004652/0.6751, allocations: 51.89 kB / 0.5426 GB, free: 15.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.6764, allocations: 1.28 MB / 0.5438 GB, free: 14.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009081/0.6773, allocations: 0.5225 MB / 0.5443 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.6775, allocations: 34.88 kB / 0.5444 GB, free: 14.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.6777, allocations: 386 kB / 0.5447 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002821/0.6805, allocations: 0.8701 MB / 0.5456 GB, free: 13.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003161/0.6838, allocations: 1.323 MB / 0.5469 GB, free: 12.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003276/0.6871, allocations: 1.079 MB / 0.5479 GB, free: 11.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/0.6872, allocations: 4.188 kB / 0.5479 GB, free: 11.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008017/0.6952, allocations: 2.741 MB / 0.5506 GB, free: 10.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.6953, allocations: 11.38 kB / 0.5506 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.631e-05/0.6953, allocations: 14.34 kB / 0.5506 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.6968, allocations: 368.2 kB / 0.551 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003647/0.7004, allocations: 463.9 kB / 0.5514 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007811/0.7083, allocations: 6.11 MB / 0.5574 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/0.7113, allocations: 119.8 kB / 0.5575 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003703/0.7118, allocations: 71.98 kB / 0.5576 GB, free: 3.848 MB / 378.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 (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.002717/0.7145, allocations: 0.911 MB / 0.5585 GB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007754/0.7153, allocations: 205.5 kB / 0.5587 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008476/0.7238, allocations: 2.882 MB / 0.5615 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.586e-05/0.7238, allocations: 12 kB / 0.5615 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/0.7239, allocations: 8 kB / 0.5615 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.544e-05/0.7239, allocations: 7.969 kB / 0.5615 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02058/0.7445, allocations: 6.036 MB / 0.5674 GB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.566e-05/0.7446, allocations: 7.953 kB / 0.5674 GB, free: 9.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/0.7469, allocations: 235.6 kB / 0.5676 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003951/0.7509, allocations: 0.8016 MB / 0.5684 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003908/0.7513, allocations: 43.97 kB / 0.5685 GB, free: 8.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02142/0.7727, allocations: 10.11 MB / 0.5783 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.7728, allocations: 4 kB / 0.5783 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/0.7863, allocations: 4.372 MB / 0.5826 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/0.7885, allocations: 482.3 kB / 0.5831 GB, free: 9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008063/0.7894, allocations: 36 kB / 0.5831 GB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002558/0.7919, allocations: 103.9 kB / 0.5832 GB, free: 8.863 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006585/0.7926, allocations: 117 kB / 0.5833 GB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/0.7928, allocations: 43.98 kB / 0.5834 GB, free: 8.703 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003666/0.7965, allocations: 1.282 MB / 0.5846 GB, free: 7.398 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7966, allocations: 0.75 kB / 0.5846 GB, free: 7.398 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004052/0.8006, allocations: 0.5703 MB / 0.5852 GB, free: 6.828 MB / 410.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,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.0007395/0.8014, allocations: 162.2 kB / 0.5853 GB, free: 6.664 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00737/0.8088, allocations: 2.581 MB / 0.5878 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/0.8089, allocations: 320 / 0.5878 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005072/0.814, allocations: 1.679 MB / 0.5895 GB, free: 2.316 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004672/0.8187, allocations: 498.3 kB / 0.59 GB, free: 1.836 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/0.8375, allocations: 6.893 MB / 0.5967 GB, free: 10.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003664/0.8412, allocations: 2.244 MB / 0.5989 GB, free: 8.582 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.8426, allocations: 167.4 kB / 0.599 GB, free: 8.418 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/0.8426, allocations: 3.938 kB / 0.599 GB, free: 8.414 MB / 426.7 MB Notification: Performance of Templates: time 0.5075/1.35, allocations: 79.94 MB / 0.6771 GB, free: 139.7 MB / 490.7 MB 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/jenkins1/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