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_NoLoad.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_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 179.5 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.298/1.298, allocations: 225.7 MB / 243.2 MB, free: 8.469 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.0007548/0.0007548, allocations: 98.89 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002163/0.0002163, allocations: 8 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.204, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.005741/0.2098, allocations: 7.975 MB / 412.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003749/0.2135, allocations: 3.458 MB / 416 MB, free: 19.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005588/0.2141, allocations: 39.81 kB / 416.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.2151, allocations: 0.5867 MB / 416.6 MB, free: 19.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.2163, allocations: 0.6333 MB / 417.3 MB, free: 18.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.2168, allocations: 283.6 kB / 417.6 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.2181, allocations: 2.433 MB / 420 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009734/0.2191, allocations: 1.176 MB / 421.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006048/0.2197, allocations: 0.7311 MB / 421.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007715/0.2205, allocations: 0.9803 MB / 422.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.2207, allocations: 104 kB / 423 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003665/0.221, allocations: 203.8 kB / 423.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003514/0.2214, allocations: 0.5255 MB / 423.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005688/0.222, allocations: 0.942 MB / 424.6 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.2235, allocations: 2.919 MB / 427.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.2235, allocations: 0 / 427.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2235, allocations: 0 / 427.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.329e-05/0.2236, allocations: 0 / 427.6 MB, free: 8.129 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.002525/0.2261, allocations: 1.928 MB / 429.5 MB, free: 6.145 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.2261, allocations: 12.03 kB / 429.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004387/0.2266, allocations: 230.5 kB / 429.7 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.2279, allocations: 1.184 MB / 430.9 MB, free: 4.664 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.788e-05/0.228, allocations: 115.5 kB / 431 MB, free: 4.551 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.2282, allocations: 159.9 kB / 431.2 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.2305, allocations: 1.993 MB / 433.2 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.871e-05/0.2306, allocations: 7.906 kB / 433.2 MB, free: 2.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.2307, allocations: 60 kB / 433.2 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.693e-05/0.2308, allocations: 78.86 kB / 433.3 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001994/0.2328, allocations: 1.635 MB / 435 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008288/0.2411, allocations: 6.979 MB / 441.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000672/0.2418, allocations: 436.5 kB / 442.4 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003537/0.2421, allocations: 262.6 kB / 442.6 MB, free: 8.562 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001861/0.2423, allocations: 117.5 kB / 442.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.2423, allocations: 39 kB / 442.8 MB, free: 8.383 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.134e-06/0.2424, allocations: 0 / 442.8 MB, free: 8.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.006225/0.2486, allocations: 3.307 MB / 446.1 MB, free: 4.992 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002061/0.2507, allocations: 2.174 MB / 448.2 MB, free: 2.652 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.2526, allocations: 1.596 MB / 449.8 MB, free: 1.047 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.2527, allocations: 37.7 kB / 449.9 MB, free: 1.004 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006477/0.2533, allocations: 1.018 MB / 450.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.2535, allocations: 232.8 kB / 451.1 MB, free: 15.74 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.2536, allocations: 40.03 kB / 451.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2537, allocations: 373.9 kB / 451.5 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.2544, allocations: 0.5075 MB / 452 MB, free: 14.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.2557, allocations: 1.457 MB / 453.5 MB, free: 12.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.2578, allocations: 2.134 MB / 455.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.2578, allocations: 8 kB / 455.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.002991/0.2608, allocations: 2.142 MB / 457.8 MB, free: 8.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.2608, allocations: 20 kB / 457.8 MB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.668e-05/0.2609, allocations: 40.16 kB / 457.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004826/0.2614, allocations: 230.3 kB / 458.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2624, allocations: 395.3 kB / 458.4 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.2638, allocations: 1.71 MB / 460.2 MB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.265, allocations: 135.4 kB / 460.3 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.2652, allocations: 99.98 kB / 460.4 MB, free: 5.367 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009042/0.2661, allocations: 0.5866 MB / 461 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.2663, allocations: 158.1 kB / 461.1 MB, free: 4.613 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.2681, allocations: 1.106 MB / 462.2 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.2681, allocations: 15.88 kB / 462.2 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2681, allocations: 0 / 462.2 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.2682, allocations: 3.984 kB / 462.3 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004798/0.273, allocations: 3.386 MB / 465.6 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.273, allocations: 8.094 kB / 465.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.2734, allocations: 107.8 kB / 465.8 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000591/0.274, allocations: 226.4 kB / 466 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.274, allocations: 23.98 kB / 466 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00336/0.2774, allocations: 3.694 MB / 469.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001781/0.2792, allocations: 2.006 MB / 471.7 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.2815, allocations: 1.738 MB / 473.4 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004879/0.282, allocations: 311.1 kB / 473.7 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.2822, allocations: 16 kB / 473.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005963/0.2828, allocations: 51.88 kB / 473.8 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.2829, allocations: 67.86 kB / 473.9 MB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.394e-05/0.283, allocations: 27.94 kB / 473.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001372/0.2843, allocations: 1.055 MB / 475 MB, free: 6.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2843, allocations: 0 / 475 MB, free: 6.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001358/0.2857, allocations: 387.9 kB / 475.3 MB, free: 5.691 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002969/0.286, allocations: 187.1 kB / 475.5 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.2881, allocations: 1.586 MB / 477.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.2881, allocations: 7.938 kB / 477.1 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.2892, allocations: 0.84 MB / 477.9 MB, free: 2.973 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/0.2916, allocations: 398.8 kB / 478.3 MB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004334/0.296, allocations: 3.872 MB / 482.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.297, allocations: 1.469 MB / 483.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009585/0.298, allocations: 350 kB / 484 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002447/0.2982, allocations: 111.4 kB / 484.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of SimCode: time 5.72e-07/0.2983, allocations: 4 kB / 484.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of Templates: time 0.03098/0.3292, allocations: 19.36 MB / 0.4917 GB, free: 9.465 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches