Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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) 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 90.59 kB / 16.3 MB, free: 5.996 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.001533/0.001533, allocations: 184.1 kB / 17.2 MB, free: 5.914 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.463/1.463, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002979/0.0002979, allocations: 9.5 kB / 300.7 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1247, allocations: 50.43 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.009756/0.1345, allocations: 8.382 MB / 359.5 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006492/0.141, allocations: 3.298 MB / 362.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.1428, allocations: 51.75 kB / 362.9 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002379/0.1452, allocations: 0.6375 MB / 363.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003479/0.1487, allocations: 0.7243 MB / 364.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.15, allocations: 267.6 kB / 364.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003941/0.154, allocations: 1.802 MB / 366.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003359/0.1574, allocations: 1.58 MB / 367.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001915/0.1593, allocations: 0.8717 MB / 368.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002577/0.1619, allocations: 1.121 MB / 369.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007909/0.1627, allocations: 132 kB / 370 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.1641, allocations: 215.8 kB / 370.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.1654, allocations: 0.6698 MB / 370.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001274/0.1667, allocations: 0.516 MB / 371.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004826/0.1715, allocations: 3.463 MB / 374.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1715, allocations: 4 kB / 374.9 MB, free: 3.945 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.388e-06/0.1715, allocations: 0 / 374.9 MB, free: 3.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001327/0.1717, allocations: 0 / 374.9 MB, free: 3.945 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006528/0.1782, allocations: 2.605 MB / 377.5 MB, free: 1.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1783, allocations: 8.031 kB / 377.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009009/0.1792, allocations: 308.5 kB / 377.8 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003247/0.1824, allocations: 1.547 MB / 379.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.1826, allocations: 172.4 kB / 379.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003423/0.183, allocations: 220 kB / 379.7 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00525/0.1882, allocations: 2.89 MB / 382.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.94e-05/0.1883, allocations: 15.75 kB / 382.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.1885, allocations: 91.98 kB / 382.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/0.1887, allocations: 112.3 kB / 382.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004391/0.1931, allocations: 2.437 MB / 385.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.2082, allocations: 9.106 MB / 394.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00246/0.2107, allocations: 1.716 MB / 396.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/0.211, allocations: 207.2 kB / 396.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.2111, allocations: 43.56 kB / 396.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=105): time 2.845e-06/0.2111, allocations: 8 kB / 396.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.01489/0.226, allocations: 6.669 MB / 403 MB, free: 6.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.2261, allocations: 64.41 kB / 403.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.2286, allocations: 1.491 MB / 404.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001459/0.2288, allocations: 49.7 kB / 404.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008141/0.2296, allocations: 1.104 MB / 405.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.23, allocations: 429.8 kB / 406.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/0.2301, allocations: 32 kB / 406.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2302, allocations: 361.9 kB / 406.5 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.2315, allocations: 0.7222 MB / 407.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.2329, allocations: 1.145 MB / 408.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.2343, allocations: 0.8965 MB / 409.3 MB, free: 460 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/0.2344, allocations: 7.938 kB / 409.3 MB, free: 452 kB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004763/0.2391, allocations: 2.53 MB / 411.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.2392, allocations: 8 kB / 411.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-05/0.2393, allocations: 12 kB / 411.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.2403, allocations: 405.4 kB / 412.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.2417, allocations: 359.5 kB / 412.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007493/0.2492, allocations: 6.439 MB / 419 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002161/0.2514, allocations: 111.8 kB / 419.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002112/0.2516, allocations: 64 kB / 419.2 MB, free: 6.082 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (172): * Single equations (assignments): 168 * 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 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001883/0.2535, allocations: 0.7197 MB / 419.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005297/0.2541, allocations: 173.8 kB / 420.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004339/0.2584, allocations: 2.201 MB / 422.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.2585, allocations: 12 kB / 422.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.2585, allocations: 7.953 kB / 422.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.2585, allocations: 3.984 kB / 422.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2512/0.5098, allocations: 4.727 MB / 427 MB, free: 61.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.5098, allocations: 8.031 kB / 427 MB, free: 61.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009489/0.5108, allocations: 236.9 kB / 427.3 MB, free: 61.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.5119, allocations: 438.8 kB / 427.7 MB, free: 61.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.781e-05/0.512, allocations: 34.33 kB / 427.7 MB, free: 61.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007178/0.5192, allocations: 7.934 MB / 435.7 MB, free: 56.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.5193, allocations: 3.75 kB / 435.7 MB, free: 56.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006464/0.5257, allocations: 3.463 MB / 439.1 MB, free: 55.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.527, allocations: 398.7 kB / 439.5 MB, free: 55.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/0.5273, allocations: 33.3 kB / 439.6 MB, free: 55.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008925/0.5282, allocations: 87.42 kB / 439.6 MB, free: 55.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000309/0.5285, allocations: 102.9 kB / 439.7 MB, free: 55.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.444e-05/0.5286, allocations: 39.47 kB / 439.8 MB, free: 55.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001756/0.5304, allocations: 1.017 MB / 440.8 MB, free: 55.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5304, allocations: 0 / 440.8 MB, free: 55.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001975/0.5324, allocations: 487.4 kB / 441.3 MB, free: 55.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * 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 (110): * Single equations (assignments): 106 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003636/0.5328, allocations: 162.9 kB / 441.4 MB, free: 55.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.5363, allocations: 2.294 MB / 443.7 MB, free: 54.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5363, allocations: 0 / 443.7 MB, free: 54.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001925/0.5382, allocations: 1.471 MB / 445.2 MB, free: 53.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.54, allocations: 440.4 kB / 445.6 MB, free: 53.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007001/0.547, allocations: 5.596 MB / 451.2 MB, free: 50.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00126/0.5483, allocations: 1.895 MB / 453.1 MB, free: 49.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001232/0.5496, allocations: 392.7 kB / 453.5 MB, free: 49.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.5499, allocations: 118.4 kB / 453.6 MB, free: 49.64 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5499, allocations: 0 / 453.6 MB, free: 49.64 MB / 350.1 MB Notification: Performance of Templates: time 0.03599/0.5859, allocations: 23.78 MB / 477.4 MB, free: 26.49 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches