Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008693/0.0008693, allocations: 179.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 225.7 MB / 243.2 MB, free: 8.438 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007132/0.0007132, allocations: 85.95 kB / 294.4 MB, free: 9.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002829/0.000283, allocations: 7.938 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.198, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.006398/0.2044, allocations: 8.528 MB / 413.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.2086, allocations: 3.331 MB / 416.4 MB, free: 19.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007198/0.2093, allocations: 51.75 kB / 416.5 MB, free: 19.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.2104, allocations: 0.5941 MB / 417.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.2117, allocations: 0.6838 MB / 417.8 MB, free: 17.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005295/0.2122, allocations: 347.7 kB / 418.1 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001723/0.2139, allocations: 2.869 MB / 421 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.2155, allocations: 1.95 MB / 422.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007593/0.2163, allocations: 0.9062 MB / 423.8 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.2173, allocations: 1.249 MB / 425.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.2176, allocations: 132 kB / 425.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004704/0.218, allocations: 243.8 kB / 425.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000464/0.2185, allocations: 0.6774 MB / 426.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007433/0.2193, allocations: 1.202 MB / 427.3 MB, free: 8.332 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.2213, allocations: 3.865 MB / 431.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.2213, allocations: 0 / 431.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2214, allocations: 0 / 431.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.814e-05/0.2214, allocations: 4 kB / 431.2 MB, free: 4.449 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.0036/0.225, allocations: 2.473 MB / 433.7 MB, free: 1.914 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2251, allocations: 16.02 kB / 433.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005391/0.2256, allocations: 285.6 kB / 434 MB, free: 1.617 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001761/0.2274, allocations: 1.492 MB / 435.5 MB, free: 68 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.2275, allocations: 172.6 kB / 435.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002847/0.2278, allocations: 211.9 kB / 435.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004228/0.2321, allocations: 2.792 MB / 438.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.624e-05/0.2321, allocations: 8 kB / 438.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.2323, allocations: 80 kB / 438.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.2324, allocations: 108.1 kB / 438.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00368/0.2361, allocations: 2.363 MB / 441.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.2479, allocations: 8.643 MB / 449.8 MB, free: 1.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.2501, allocations: 1.714 MB / 451.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/0.2516, allocations: 0.9879 MB / 452.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002481/0.2519, allocations: 207.2 kB / 452.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.2519, allocations: 47.44 kB / 452.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 2.915e-06/0.2519, allocations: 0 / 452.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.01215/0.2641, allocations: 6.327 MB / 459.1 MB, free: 7.727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.2642, allocations: 68.34 kB / 459.2 MB, free: 7.645 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.266, allocations: 1.429 MB / 460.6 MB, free: 6.203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.901e-05/0.2661, allocations: 45.7 kB / 460.6 MB, free: 6.152 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006597/0.2667, allocations: 1.037 MB / 461.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.267, allocations: 406.1 kB / 462.1 MB, free: 4.699 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-05/0.2671, allocations: 32 kB / 462.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2673, allocations: 365.9 kB / 462.5 MB, free: 4.305 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.2683, allocations: 0.691 MB / 463.2 MB, free: 3.613 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.2696, allocations: 1.073 MB / 464.2 MB, free: 2.383 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.2721, allocations: 1.883 MB / 466.1 MB, free: 344 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.2721, allocations: 4 kB / 466.1 MB, free: 340 kB / 330.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003673/0.2758, allocations: 2.429 MB / 468.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.2758, allocations: 8 kB / 468.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.2758, allocations: 12 kB / 468.6 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009162/0.2768, allocations: 415.3 kB / 469 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.278, allocations: 335.5 kB / 469.3 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005979/0.284, allocations: 6.456 MB / 475.7 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.285, allocations: 103.8 kB / 475.9 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.2851, allocations: 63.92 kB / 475.9 MB, free: 6.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.00106/0.2862, allocations: 0.6925 MB / 476.6 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.2864, allocations: 158 kB / 476.8 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.2898, allocations: 2.142 MB / 478.9 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.2898, allocations: 12 kB / 478.9 MB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.2898, allocations: 7.984 kB / 478.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.2899, allocations: 7.922 kB / 478.9 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006708/0.2966, allocations: 4.599 MB / 483.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2966, allocations: 8.344 kB / 483.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008848/0.2975, allocations: 223.7 kB / 483.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.2985, allocations: 447 kB / 484.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/0.2986, allocations: 31.98 kB / 484.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007071/0.3057, allocations: 7.916 MB / 492.1 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3057, allocations: 4.047 kB / 492.1 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004352/0.3101, allocations: 3.136 MB / 495.3 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.3107, allocations: 386.9 kB / 495.7 MB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.3109, allocations: 39.98 kB / 495.7 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007781/0.3117, allocations: 91.84 kB / 495.8 MB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.3119, allocations: 92.75 kB / 495.9 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.241e-05/0.312, allocations: 39.98 kB / 495.9 MB, free: 1.223 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001424/0.3134, allocations: 0.973 MB / 496.9 MB, free: 256 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3134, allocations: 4 kB / 496.9 MB, free: 252 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001516/0.3149, allocations: 460.2 kB / 497.3 MB, free: 15.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.0003818/0.3153, allocations: 207.6 kB / 497.5 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.3188, allocations: 2.229 MB / 499.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3188, allocations: 8.062 kB / 499.8 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002101/0.3209, allocations: 1.45 MB / 0.4895 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.323, allocations: 403.9 kB / 0.4899 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006907/0.3299, allocations: 5.541 MB / 0.4953 GB, free: 5.777 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.3313, allocations: 1.796 MB / 0.497 GB, free: 3.949 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009982/0.3323, allocations: 365.5 kB / 0.4974 GB, free: 3.586 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003069/0.3327, allocations: 115.4 kB / 0.4975 GB, free: 3.473 MB / 378.7 MB Notification: Performance of SimCode: time 7.62e-07/0.3327, allocations: 0 / 0.4975 GB, free: 3.473 MB / 378.7 MB Notification: Performance of Templates: time 0.184/0.5167, allocations: 23.05 MB / 0.52 GB, free: 83.46 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches