Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.00095/0.00095, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.0009576/0.0009576, allocations: 145.2 kB / 25.59 MB, free: 8.914 MB / 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 0.9018/0.9018, allocations: 173.4 MB / 202.3 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] 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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.372e-05/1.526e-05, allocations: 2.875 kB / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01074/0.01075, allocations: 11.01 MB / 280.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005536/0.01629, allocations: 3.483 MB / 283.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009554/0.01725, allocations: 83.44 kB / 283.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001549/0.01879, allocations: 0.8421 MB / 284.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001707/0.0205, allocations: 1.009 MB / 285.7 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006472/0.02115, allocations: 451.2 kB / 286.1 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00307/0.02422, allocations: 3.859 MB / 290 MB, free: 4.953 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.02623, allocations: 1.553 MB / 291.5 MB, free: 3.336 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.02862, allocations: 2.542 MB / 294 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00189/0.03051, allocations: 1.878 MB / 295.9 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004261/0.03094, allocations: 411.9 kB / 296.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006483/0.03159, allocations: 499.8 kB / 296.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009117/0.0325, allocations: 1.243 MB / 298.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.03371, allocations: 1.341 MB / 299.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002792/0.03651, allocations: 3.146 MB / 302.5 MB, free: 8.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.03651, allocations: 0 / 302.5 MB, free: 8.27 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.03651, allocations: 0 / 302.5 MB, free: 8.27 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.298e-05/0.03653, allocations: 4 kB / 302.5 MB, free: 8.266 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.00467/0.0412, allocations: 3.891 MB / 306.4 MB, free: 4.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.04124, allocations: 12.03 kB / 306.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009515/0.04219, allocations: 0.6392 MB / 307.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.04436, allocations: 1.785 MB / 308.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.0445, allocations: 210.1 kB / 309.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003412/0.04484, allocations: 292.3 kB / 309.4 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.04762, allocations: 2.338 MB / 311.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.879e-05/0.04768, allocations: 11.89 kB / 311.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.04789, allocations: 120 kB / 311.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/0.04799, allocations: 117.5 kB / 311.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.04956, allocations: 0.828 MB / 312.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0138/0.06335, allocations: 9.737 MB / 322.5 MB, free: 3.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.06453, allocations: 1.011 MB / 323.5 MB, free: 2.672 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009325/0.06547, allocations: 0.594 MB / 324.1 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001327/0.0656, allocations: 45.3 kB / 324.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.06564, allocations: 58.64 kB / 324.2 MB, free: 1.965 MB / 298.7 MB Notification: Performance of pre-optimization done (n=136): time 3.035e-06/0.06564, allocations: 4 kB / 324.2 MB, free: 1.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=151): time 0.006042/0.07168, allocations: 3.133 MB / 327.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.07171, allocations: 68.72 kB / 327.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.07328, allocations: 1.616 MB / 329 MB, free: 13.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.623e-05/0.07336, allocations: 53.7 kB / 329.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009209/0.07428, allocations: 1.517 MB / 330.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003772/0.07466, allocations: 0.5578 MB / 331.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004639/0.07512, allocations: 368.9 kB / 331.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.07525, allocations: 480.7 kB / 332 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006331/0.07588, allocations: 207.8 kB / 332.2 MB, free: 9.863 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007779/0.07666, allocations: 0.9207 MB / 333.1 MB, free: 8.656 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.07824, allocations: 1.288 MB / 334.4 MB, free: 7.086 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.07825, allocations: 4 kB / 334.4 MB, free: 7.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002552/0.0808, allocations: 1.692 MB / 336.1 MB, free: 5.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.08082, allocations: 16.06 kB / 336.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.08084, allocations: 12 kB / 336.1 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.08233, allocations: 0.5819 MB / 336.7 MB, free: 4.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008133/0.08314, allocations: 323.5 kB / 337 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1303/0.2135, allocations: 21.29 MB / 358.3 MB, free: 77.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.2145, allocations: 62.56 kB / 358.4 MB, free: 77.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.2147, allocations: 60.28 kB / 358.4 MB, free: 77.79 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006429/0.2153, allocations: 276.4 kB / 358.7 MB, free: 77.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.2156, allocations: 259.9 kB / 359 MB, free: 77.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.2174, allocations: 1.27 MB / 360.2 MB, free: 77.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.2175, allocations: 16.05 kB / 360.3 MB, free: 77.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-05/0.2175, allocations: 7.75 kB / 360.3 MB, free: 77.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.2175, allocations: 7.453 kB / 360.3 MB, free: 77.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004661/0.2221, allocations: 3.782 MB / 364 MB, free: 76.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.2222, allocations: 4 kB / 364.1 MB, free: 76.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004168/0.2226, allocations: 181.3 kB / 364.2 MB, free: 76.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.2236, allocations: 0.5046 MB / 364.7 MB, free: 76.53 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-05/0.2236, allocations: 36.03 kB / 364.8 MB, free: 76.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005306/0.2289, allocations: 18.66 MB / 383.4 MB, free: 59.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.2289, allocations: 16.88 kB / 383.4 MB, free: 59.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.2311, allocations: 1.803 MB / 385.2 MB, free: 58.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006286/0.2317, allocations: 337.8 kB / 385.6 MB, free: 58.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.2319, allocations: 32.44 kB / 385.6 MB, free: 58.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005555/0.2325, allocations: 71.05 kB / 385.7 MB, free: 58.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/0.2328, allocations: 129.2 kB / 385.8 MB, free: 58.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.726e-05/0.2329, allocations: 36.66 kB / 385.8 MB, free: 58.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008944/0.2338, allocations: 0.8666 MB / 386.7 MB, free: 58.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2338, allocations: 0 / 386.7 MB, free: 58.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001851/0.2356, allocations: 0.6435 MB / 387.4 MB, free: 58.26 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003232/0.2359, allocations: 204 kB / 387.6 MB, free: 58.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.238, allocations: 2.885 MB / 390.4 MB, free: 56.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.238, allocations: 0 / 390.4 MB, free: 56.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.239, allocations: 2.248 MB / 392.7 MB, free: 54.28 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.2405, allocations: 0.6139 MB / 393.3 MB, free: 53.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00487/0.2454, allocations: 4.851 MB / 398.1 MB, free: 49.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005515/0.2459, allocations: 0.7964 MB / 398.9 MB, free: 48.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006107/0.2465, allocations: 245.7 kB / 399.2 MB, free: 48.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008364/0.2474, allocations: 0.654 MB / 399.8 MB, free: 47.78 MB / 330.7 MB Notification: Performance of SimCode: time 1.342e-06/0.2474, allocations: 0 / 399.8 MB, free: 47.78 MB / 330.7 MB Notification: Performance of Templates: time 0.04344/0.2908, allocations: 40.73 MB / 440.6 MB, free: 7.703 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.771743316669017]