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.0007708/0.0007708, allocations: 91.8 kB / 17.31 MB, free: 6.539 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.0008409/0.0008409, allocations: 172.7 kB / 18.21 MB, free: 5.68 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.118/1.118, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001986/0.0001986, allocations: 11.94 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07089/0.0711, allocations: 50.41 MB / 352.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008508/0.07965, allocations: 9.695 MB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.08353, allocations: 3.365 MB / 365.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000466/0.08401, allocations: 51.75 kB / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.08517, allocations: 0.6798 MB / 366.3 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001319/0.08649, allocations: 0.7498 MB / 367 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.08707, allocations: 379.6 kB / 367.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002301/0.08938, allocations: 3.078 MB / 370.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1287/0.2181, allocations: 1.999 MB / 372.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.2196, allocations: 0.9586 MB / 373.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001934/0.2215, allocations: 1.327 MB / 374.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005161/0.2221, allocations: 139.6 kB / 374.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008525/0.2229, allocations: 253.9 kB / 375.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007722/0.2237, allocations: 0.7084 MB / 375.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.2253, allocations: 1.274 MB / 377.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002992/0.2283, allocations: 3.512 MB / 380.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2284, allocations: 0 / 380.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2284, allocations: 4.938 kB / 380.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.949e-05/0.2284, allocations: 0 / 380.6 MB, free: 10.02 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.004215/0.2327, allocations: 2.596 MB / 383.2 MB, free: 8.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2327, allocations: 9.531 kB / 383.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006444/0.2334, allocations: 306.2 kB / 383.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001847/0.2352, allocations: 1.582 MB / 385.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001268/0.2353, allocations: 173.6 kB / 385.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003079/0.2357, allocations: 227 kB / 385.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003909/0.2396, allocations: 2.928 MB / 388.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.777e-05/0.2396, allocations: 11.98 kB / 388.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001916/0.2398, allocations: 88.42 kB / 388.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.963e-05/0.24, allocations: 118.4 kB / 388.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003285/0.2432, allocations: 2.453 MB / 391.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009397/0.2526, allocations: 9.153 MB / 400.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.2546, allocations: 1.723 MB / 402 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.2561, allocations: 1.006 MB / 403 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002383/0.2564, allocations: 204.8 kB / 403.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.2564, allocations: 50.8 kB / 403.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.264e-06/0.2564, allocations: 2.719 kB / 403.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01223/0.2686, allocations: 6.689 MB / 409.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.2687, allocations: 64.41 kB / 410 MB, free: 6.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/0.2705, allocations: 1.565 MB / 411.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.2706, allocations: 45.7 kB / 411.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/0.2713, allocations: 1.115 MB / 412.7 MB, free: 4.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/0.2716, allocations: 434.2 kB / 413.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.2718, allocations: 121.7 kB / 413.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.2719, allocations: 301.1 kB / 413.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.2729, allocations: 0.7183 MB / 414.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.2743, allocations: 1.161 MB / 415.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00247/0.2767, allocations: 1.986 MB / 417.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2767, allocations: 4 kB / 417.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00363/0.2804, allocations: 2.542 MB / 420 MB, free: 12.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.2804, allocations: 15.94 kB / 420 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.2804, allocations: 19.98 kB / 420 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008445/0.2813, allocations: 426 kB / 420.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.2824, allocations: 352.9 kB / 420.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005769/0.2882, allocations: 6.55 MB / 427.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000933/0.2892, allocations: 111.8 kB / 427.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.2893, allocations: 60 kB / 427.5 MB, free: 4.73 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.0009349/0.2902, allocations: 0.7171 MB / 428.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.2904, allocations: 169.8 kB / 428.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003403/0.2938, allocations: 2.233 MB / 430.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.988e-06/0.2939, allocations: 15.94 kB / 430.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.2939, allocations: 4 kB / 430.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2939, allocations: 3.984 kB / 430.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006602/0.3005, allocations: 4.813 MB / 435.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.3005, allocations: 11.81 kB / 435.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000857/0.3014, allocations: 227.4 kB / 435.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009908/0.3024, allocations: 461.9 kB / 436.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.617e-05/0.3025, allocations: 31.98 kB / 436.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006726/0.3092, allocations: 7.98 MB / 444.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3092, allocations: 11.66 kB / 444.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004314/0.3135, allocations: 3.247 MB / 447.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005361/0.3141, allocations: 406.8 kB / 447.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/0.3143, allocations: 32 kB / 447.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008343/0.3151, allocations: 95.89 kB / 447.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.3153, allocations: 101.2 kB / 448 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.683e-05/0.3154, allocations: 39.98 kB / 448.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001272/0.3167, allocations: 1.07 MB / 449.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3167, allocations: 0 / 449.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001296/0.318, allocations: 488 kB / 449.6 MB, free: 13.94 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.0003064/0.3183, allocations: 204.6 kB / 449.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003102/0.3214, allocations: 2.303 MB / 452.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3214, allocations: 2.156 kB / 452.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.3235, allocations: 1.476 MB / 453.6 MB, free: 9.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.326, allocations: 466.6 kB / 454 MB, free: 9.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006452/0.3324, allocations: 5.904 MB / 459.9 MB, free: 3.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.3338, allocations: 1.843 MB / 461.8 MB, free: 1.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00037/0.3342, allocations: 131.4 kB / 461.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3342, allocations: 3.375 kB / 461.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of Templates: time 0.06392/0.3981, allocations: 73.24 MB / 0.5226 GB, free: 8.355 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