Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002361/0.002361, allocations: 153.4 kB / 24.26 MB, free: 180 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,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=15000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.552e-05/2.692e-05, allocations: 2.312 kB / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01241/0.01244, allocations: 8.557 MB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006676/0.01911, allocations: 2.929 MB / 278.8 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.02017, allocations: 71.5 kB / 278.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.02183, allocations: 0.6674 MB / 279.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002278/0.02411, allocations: 0.8343 MB / 280.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008884/0.025, allocations: 399.3 kB / 280.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003207/0.02821, allocations: 2.641 MB / 283.4 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001939/0.03015, allocations: 1.264 MB / 284.7 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002781/0.03293, allocations: 1.766 MB / 286.5 MB, free: 3.449 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.03494, allocations: 1.294 MB / 287.8 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004561/0.03539, allocations: 320 kB / 288.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007396/0.03613, allocations: 419.8 kB / 288.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.03713, allocations: 0.927 MB / 289.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1078/0.1449, allocations: 0.9684 MB / 290.4 MB, free: 18.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004178/0.1491, allocations: 4.21 MB / 294.6 MB, free: 18.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1491, allocations: 1.906 kB / 294.6 MB, free: 18.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1491, allocations: 0 / 294.6 MB, free: 18.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.73e-05/0.1491, allocations: 0 / 294.6 MB, free: 18.54 MB / 266.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.005102/0.1542, allocations: 2.879 MB / 297.5 MB, free: 17.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1543, allocations: 12.8 kB / 297.5 MB, free: 17.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009696/0.1553, allocations: 471 kB / 297.9 MB, free: 17.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002336/0.1576, allocations: 1.54 MB / 299.5 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.1577, allocations: 158.9 kB / 299.6 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003123/0.158, allocations: 214.5 kB / 299.8 MB, free: 16.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004177/0.1622, allocations: 2.899 MB / 302.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.399e-05/0.1623, allocations: 6.594 kB / 302.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002026/0.1625, allocations: 91.06 kB / 302.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.1626, allocations: 103.6 kB / 302.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00362/0.1662, allocations: 2.351 MB / 305.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01076/0.1769, allocations: 7.501 MB / 312.8 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.1788, allocations: 1.175 MB / 314 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.1803, allocations: 0.9097 MB / 314.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002209/0.1805, allocations: 52.97 kB / 314.9 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.1805, allocations: 43.56 kB / 315 MB, free: 8.223 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.755e-06/0.1805, allocations: 4 kB / 315 MB, free: 8.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.01147/0.192, allocations: 5.754 MB / 320.7 MB, free: 2.469 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.192, allocations: 70.72 kB / 320.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/0.1936, allocations: 1.301 MB / 322.1 MB, free: 1.086 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.719e-05/0.1937, allocations: 45.7 kB / 322.1 MB, free: 1.035 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004689/0.1942, allocations: 1.059 MB / 323.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004297/0.1946, allocations: 425.6 kB / 323.6 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004841/0.1951, allocations: 259.5 kB / 323.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.1953, allocations: 357.9 kB / 324.2 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.1966, allocations: 0.6871 MB / 324.9 MB, free: 14.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001938/0.1985, allocations: 1.073 MB / 326 MB, free: 13.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003178/0.2017, allocations: 1.864 MB / 327.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.2017, allocations: 4 kB / 327.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004916/0.2067, allocations: 2.39 MB / 330.2 MB, free: 8.723 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.2067, allocations: 15.98 kB / 330.2 MB, free: 8.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.2067, allocations: 12.88 kB / 330.3 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.208, allocations: 450.2 kB / 330.7 MB, free: 8.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.2094, allocations: 328 kB / 331 MB, free: 7.945 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00943/0.2188, allocations: 6.635 MB / 337.7 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.2205, allocations: 107.8 kB / 337.8 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.2206, allocations: 63.98 kB / 337.8 MB, free: 0.8867 MB / 282.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.001623/0.2222, allocations: 0.6862 MB / 338.5 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004898/0.2227, allocations: 195 kB / 338.7 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004672/0.2274, allocations: 2.029 MB / 340.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.2274, allocations: 12 kB / 340.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.2274, allocations: 7.5 kB / 340.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.2274, allocations: 11.91 kB / 340.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008685/0.2361, allocations: 3.957 MB / 344.7 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.2361, allocations: 0 / 344.7 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009781/0.2371, allocations: 215.4 kB / 344.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.2385, allocations: 473.3 kB / 345.4 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.2386, allocations: 39.64 kB / 345.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/0.2491, allocations: 8.083 MB / 353.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.2492, allocations: 8 kB / 353.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006411/0.2556, allocations: 3.042 MB / 356.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.2566, allocations: 294.9 kB / 356.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.2569, allocations: 31.98 kB / 356.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009101/0.2578, allocations: 80.94 kB / 357 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.2581, allocations: 103.6 kB / 357.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-05/0.2582, allocations: 35.98 kB / 357.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001545/0.2597, allocations: 0.8757 MB / 358 MB, free: 12.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2597, allocations: 0 / 358 MB, free: 12.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001872/0.2616, allocations: 459.9 kB / 358.4 MB, free: 11.87 MB / 314.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.0004621/0.262, allocations: 200.4 kB / 358.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004139/0.2662, allocations: 2.094 MB / 360.7 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2662, allocations: 0 / 360.7 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002872/0.2691, allocations: 1.387 MB / 362.1 MB, free: 8.176 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/0.271, allocations: 375.6 kB / 362.5 MB, free: 7.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00822/0.2793, allocations: 4.389 MB / 366.9 MB, free: 3.367 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00176/0.281, allocations: 1.235 MB / 368.1 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001201/0.2822, allocations: 340.5 kB / 368.4 MB, free: 1.746 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000387/0.2826, allocations: 116.5 kB / 368.5 MB, free: 1.633 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2826, allocations: 0 / 368.5 MB, free: 1.633 MB / 314.7 MB Notification: Performance of Templates: time 0.0473/0.3299, allocations: 23.24 MB / 391.8 MB, free: 10.77 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6522545400075614]