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.001637/0.001637, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.001561/0.001561, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.913/1.913, allocations: 222.9 MB / 241.7 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 37.66 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1455, allocations: 49.46 MB / 350.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01702/0.1626, allocations: 10.23 MB / 360.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009904/0.1726, allocations: 3.404 MB / 363.7 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002839/0.1755, allocations: 55.75 kB / 363.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003349/0.179, allocations: 0.676 MB / 364.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004594/0.1836, allocations: 0.7576 MB / 365.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001907/0.1856, allocations: 359.7 kB / 365.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0056/0.1912, allocations: 3.079 MB / 368.6 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00384/0.1951, allocations: 2.037 MB / 370.7 MB, free: 100 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2919/0.487, allocations: 1.096 MB / 371.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004644/0.4917, allocations: 1.521 MB / 373.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002108/0.4939, allocations: 207.5 kB / 373.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002518/0.4965, allocations: 317.7 kB / 373.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001813/0.4983, allocations: 0.8097 MB / 374.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00415/0.5025, allocations: 1.37 MB / 376 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008118/0.5107, allocations: 3.607 MB / 379.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.134e-05/0.5108, allocations: 0 / 379.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5108, allocations: 0 / 379.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002554/0.511, allocations: 2.031 kB / 379.6 MB, free: 10.86 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.01489/0.5259, allocations: 3.057 MB / 382.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.443e-05/0.526, allocations: 9.562 kB / 382.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/0.5281, allocations: 310.5 kB / 382.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00549/0.5336, allocations: 1.575 MB / 384.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000287/0.5339, allocations: 174.8 kB / 384.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.535, allocations: 222 kB / 384.9 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.5457, allocations: 2.92 MB / 387.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.777e-05/0.5458, allocations: 9.906 kB / 387.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003293/0.5462, allocations: 87.06 kB / 387.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002403/0.5464, allocations: 115.5 kB / 388 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008463/0.5549, allocations: 2.435 MB / 390.5 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02576/0.5807, allocations: 9.105 MB / 399.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003509/0.5843, allocations: 1.704 MB / 401.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002518/0.5869, allocations: 0.9881 MB / 402.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004297/0.5873, allocations: 215.6 kB / 402.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.944e-05/0.5874, allocations: 53 kB / 402.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 4.91e-06/0.5874, allocations: 0 / 402.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.02075/0.6082, allocations: 6.553 MB / 409.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.6083, allocations: 64.41 kB / 409.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/0.6121, allocations: 1.561 MB / 410.7 MB, free: 5.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002845/0.6124, allocations: 45.7 kB / 410.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.6135, allocations: 1.109 MB / 411.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000662/0.6142, allocations: 431 kB / 412.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006513/0.6148, allocations: 279.3 kB / 412.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.615, allocations: 301.1 kB / 412.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.6168, allocations: 0.7066 MB / 413.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00239/0.6192, allocations: 1.138 MB / 414.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004096/0.6233, allocations: 1.97 MB / 416.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/0.6234, allocations: 4 kB / 416.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.006408/0.6298, allocations: 2.518 MB / 419.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.6299, allocations: 15.94 kB / 419.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/0.6299, allocations: 12 kB / 419.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/0.6315, allocations: 432.9 kB / 419.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/0.6334, allocations: 348.9 kB / 420 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009723/0.6431, allocations: 6.546 MB / 426.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/0.6456, allocations: 111.8 kB / 426.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003251/0.646, allocations: 63.98 kB / 426.7 MB, free: 4.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002256/0.6483, allocations: 0.716 MB / 427.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006985/0.649, allocations: 173.9 kB / 427.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005742/0.6547, allocations: 2.199 MB / 429.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.6548, allocations: 19.94 kB / 429.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.6548, allocations: 4 kB / 429.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.6548, allocations: 3.984 kB / 429.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.6669, allocations: 4.789 MB / 434.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.667, allocations: 0 / 434.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.6683, allocations: 223.2 kB / 434.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001582/0.6699, allocations: 455 kB / 435.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/0.6701, allocations: 31.98 kB / 435.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/0.6812, allocations: 7.988 MB / 443.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.6813, allocations: 4.047 kB / 443.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007756/0.689, allocations: 3.221 MB / 446.5 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/0.6907, allocations: 402.8 kB / 446.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004511/0.6912, allocations: 28.05 kB / 446.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.6925, allocations: 83.86 kB / 447 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004025/0.6929, allocations: 101.1 kB / 447.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.693, allocations: 39.98 kB / 447.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002584/0.6956, allocations: 1.07 MB / 448.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6956, allocations: 0 / 448.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002978/0.6986, allocations: 488 kB / 448.7 MB, free: 14.23 MB / 366.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005941/0.6992, allocations: 194.9 kB / 448.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005397/0.7046, allocations: 2.284 MB / 451.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.7047, allocations: 4 kB / 451.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003397/0.7081, allocations: 1.488 MB / 452.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/0.712, allocations: 445.2 kB / 453.1 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.7262, allocations: 5.754 MB / 458.8 MB, free: 4.008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002247/0.7285, allocations: 1.843 MB / 460.7 MB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/0.7296, allocations: 131.4 kB / 460.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.7296, allocations: 0 / 460.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of Templates: time 0.1332/0.8628, allocations: 73.59 MB / 0.5219 GB, free: 8.488 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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