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.SMPM_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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008241/0.0008242, allocations: 183.7 kB / 16.71 MB, free: 4.973 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.243/1.243, allocations: 225.7 MB / 243.2 MB, free: 8.531 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.0007013/0.0007013, allocations: 94.59 kB / 294.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002414/0.0002414, allocations: 4 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2032, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.00662/0.2098, allocations: 9.156 MB / 413.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004354/0.2142, allocations: 3.644 MB / 417.4 MB, free: 18.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007508/0.215, allocations: 51.75 kB / 417.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.2161, allocations: 0.6798 MB / 418.1 MB, free: 17.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001386/0.2175, allocations: 0.7459 MB / 418.9 MB, free: 16.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.2181, allocations: 371.6 kB / 419.2 MB, free: 16.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.2199, allocations: 3.079 MB / 422.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.2215, allocations: 2.021 MB / 424.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008128/0.2223, allocations: 0.9685 MB / 425.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.2234, allocations: 1.326 MB / 426.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.2236, allocations: 140 kB / 426.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.2241, allocations: 243.8 kB / 427 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004651/0.2246, allocations: 0.7123 MB / 427.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007835/0.2253, allocations: 1.265 MB / 429 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002071/0.2274, allocations: 4.099 MB / 433.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2274, allocations: 0 / 433.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2274, allocations: 0 / 433.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.639e-05/0.2275, allocations: 0 / 433.1 MB, free: 2.621 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.003527/0.231, allocations: 2.591 MB / 435.7 MB, free: 15.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.2311, allocations: 8.031 kB / 435.7 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006213/0.2317, allocations: 317.4 kB / 436 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.2339, allocations: 1.579 MB / 437.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.2341, allocations: 172.5 kB / 437.7 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002909/0.2344, allocations: 220 kB / 437.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004349/0.2387, allocations: 2.917 MB / 440.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.2388, allocations: 3.906 kB / 440.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001835/0.239, allocations: 95.92 kB / 441 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.2391, allocations: 116.3 kB / 441.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003824/0.2429, allocations: 2.437 MB / 443.5 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01261/0.2555, allocations: 9.156 MB / 452.7 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.2578, allocations: 1.724 MB / 454.4 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.2594, allocations: 1.007 MB / 455.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002619/0.2597, allocations: 207.2 kB / 455.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.2597, allocations: 47.56 kB / 455.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 2.805e-06/0.2597, allocations: 0 / 455.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01291/0.2726, allocations: 6.677 MB / 462.3 MB, free: 4.516 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.2727, allocations: 72.34 kB / 462.4 MB, free: 4.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001942/0.2746, allocations: 1.553 MB / 463.9 MB, free: 2.871 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.084e-05/0.2747, allocations: 45.7 kB / 464 MB, free: 2.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006622/0.2754, allocations: 1.104 MB / 465.1 MB, free: 1.699 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.2757, allocations: 433.8 kB / 465.5 MB, free: 1.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.046e-05/0.2757, allocations: 28 kB / 465.5 MB, free: 1.242 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.2759, allocations: 361.9 kB / 465.9 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.277, allocations: 0.7183 MB / 466.6 MB, free: 168 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.2783, allocations: 1.146 MB / 467.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002545/0.2808, allocations: 1.983 MB / 469.7 MB, free: 12.67 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.2808, allocations: 4 kB / 469.7 MB, free: 12.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003849/0.2847, allocations: 2.534 MB / 472.3 MB, free: 10.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.2847, allocations: 12.28 kB / 472.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.2848, allocations: 16 kB / 472.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008981/0.2857, allocations: 427.1 kB / 472.7 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.2868, allocations: 355.5 kB / 473.1 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006167/0.293, allocations: 6.553 MB / 479.6 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.2941, allocations: 111.9 kB / 479.7 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.2943, allocations: 64 kB / 479.8 MB, free: 2.16 MB / 346.7 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.001159/0.2954, allocations: 0.7121 MB / 480.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.2957, allocations: 173.8 kB / 480.7 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.2992, allocations: 2.214 MB / 482.9 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.2992, allocations: 12 kB / 482.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2993, allocations: 4 kB / 482.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.2993, allocations: 7.969 kB / 482.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006865/0.3062, allocations: 4.815 MB / 487.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.3062, allocations: 4 kB / 487.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009039/0.3071, allocations: 224.1 kB / 487.9 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.3082, allocations: 454.9 kB / 488.4 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.3083, allocations: 43.91 kB / 488.4 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007014/0.3153, allocations: 7.976 MB / 496.4 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.3153, allocations: 4 kB / 496.4 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.3201, allocations: 3.239 MB / 499.7 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007845/0.3209, allocations: 402.8 kB / 0.4883 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.3211, allocations: 28.09 kB / 0.4884 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/0.322, allocations: 91.91 kB / 0.4884 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002413/0.3222, allocations: 112.7 kB / 0.4886 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/0.3223, allocations: 43.92 kB / 0.4886 GB, free: 12.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001546/0.3238, allocations: 1.055 MB / 0.4896 GB, free: 11.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3239, allocations: 4 kB / 0.4896 GB, free: 11.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001572/0.3254, allocations: 496 kB / 0.4901 GB, free: 11.23 MB / 378.7 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.0003922/0.3258, allocations: 206.9 kB / 0.4903 GB, free: 11.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003556/0.3294, allocations: 2.293 MB / 0.4925 GB, free: 8.664 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3294, allocations: 0 / 0.4925 GB, free: 8.664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002468/0.3319, allocations: 1.481 MB / 0.494 GB, free: 7.133 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.3347, allocations: 442.7 kB / 0.4944 GB, free: 6.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007645/0.3424, allocations: 5.841 MB / 0.5001 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1587/0.5011, allocations: 1.859 MB / 0.5019 GB, free: 93.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001692/0.5028, allocations: 397.2 kB / 0.5023 GB, free: 93.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003751/0.5032, allocations: 121.5 kB / 0.5024 GB, free: 93.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.362e-06/0.5032, allocations: 0.8125 kB / 0.5024 GB, free: 93.34 MB / 378.7 MB Notification: Performance of Templates: time 0.0399/0.5431, allocations: 24.94 MB / 0.5268 GB, free: 77.05 MB / 378.7 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