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.000952/0.000952, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009622/0.0009622, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9515/0.9515, allocations: 173.4 MB / 201.1 MB, free: 9.344 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 2.164e-06/2.164e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.84e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.02947/0.0295, allocations: 11.34 MB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.04323, allocations: 3.509 MB / 282.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.04539, allocations: 87.38 kB / 282.9 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00287/0.04826, allocations: 0.8305 MB / 283.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00341/0.05167, allocations: 1.009 MB / 284.8 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.05276, allocations: 451.2 kB / 285.2 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004633/0.05739, allocations: 3.855 MB / 289.1 MB, free: 1.266 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1227/0.18, allocations: 1.552 MB / 290.6 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004457/0.1845, allocations: 2.536 MB / 293.2 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003477/0.188, allocations: 1.871 MB / 295 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001493/0.1895, allocations: 411.4 kB / 295.4 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.191, allocations: 0.4889 MB / 295.9 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001338/0.1923, allocations: 1.239 MB / 297.2 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00311/0.1954, allocations: 1.341 MB / 298.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004154/0.1996, allocations: 3.154 MB / 301.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.1996, allocations: 0 / 301.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.1996, allocations: 0 / 301.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001192/0.1997, allocations: 1.781 kB / 301.7 MB, free: 15.84 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.005162/0.2048, allocations: 4.007 MB / 305.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2049, allocations: 10.77 kB / 305.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008646/0.2057, allocations: 0.6351 MB / 306.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/0.2076, allocations: 1.899 MB / 308.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-05/0.2077, allocations: 213.7 kB / 308.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.208, allocations: 293.5 kB / 308.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.2107, allocations: 2.522 MB / 311.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.053e-05/0.2108, allocations: 7.359 kB / 311.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001628/0.2109, allocations: 124.1 kB / 311.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.758e-05/0.211, allocations: 124.2 kB / 311.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.2128, allocations: 1.064 MB / 312.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009623/0.2224, allocations: 9.923 MB / 322.5 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.2237, allocations: 1.102 MB / 323.6 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009426/0.2246, allocations: 0.6628 MB / 324.2 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001701/0.2248, allocations: 54.12 kB / 324.3 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.2248, allocations: 54.69 kB / 324.3 MB, free: 14.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.835e-06/0.2248, allocations: 4 kB / 324.3 MB, free: 14.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.006455/0.2313, allocations: 3.85 MB / 328.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.2313, allocations: 72.66 kB / 328.3 MB, free: 10.94 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.2332, allocations: 1.66 MB / 329.9 MB, free: 9.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.757e-05/0.2332, allocations: 57.17 kB / 330 MB, free: 9.211 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.2343, allocations: 1.513 MB / 331.5 MB, free: 7.691 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/0.2346, allocations: 0.5467 MB / 332 MB, free: 7.152 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003682/0.235, allocations: 369.1 kB / 332.4 MB, free: 6.781 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.2351, allocations: 476.8 kB / 332.9 MB, free: 6.312 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/0.2355, allocations: 271.8 kB / 333.1 MB, free: 6.047 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007546/0.2363, allocations: 0.9873 MB / 334.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.2376, allocations: 1.392 MB / 335.5 MB, free: 3.164 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.2376, allocations: 4 kB / 335.5 MB, free: 3.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002759/0.2403, allocations: 1.852 MB / 337.4 MB, free: 1.371 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.2404, allocations: 12 kB / 337.4 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-05/0.2404, allocations: 16.5 kB / 337.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.2418, allocations: 0.6235 MB / 338 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006653/0.2424, allocations: 340.9 kB / 338.4 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.2531, allocations: 21.71 MB / 360.1 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.2542, allocations: 91.92 kB / 360.2 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-05/0.2543, allocations: 76 kB / 360.2 MB, free: 9.27 MB / 314.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.0007631/0.2551, allocations: 282.4 kB / 360.5 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/0.2554, allocations: 258.7 kB / 360.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.2572, allocations: 1.378 MB / 362.1 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.2572, allocations: 24.03 kB / 362.2 MB, free: 7.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/0.2572, allocations: 11.38 kB / 362.2 MB, free: 7.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.2572, allocations: 11.91 kB / 362.2 MB, free: 7.301 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005526/0.2628, allocations: 3.954 MB / 366.1 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2628, allocations: 8 kB / 366.1 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.2632, allocations: 190.3 kB / 366.3 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.2643, allocations: 0.5181 MB / 366.8 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-05/0.2644, allocations: 32 kB / 366.9 MB, free: 2.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008741/0.2731, allocations: 19.03 MB / 385.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.2731, allocations: 8.094 kB / 385.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.276, allocations: 1.983 MB / 387.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006795/0.2767, allocations: 363.8 kB / 388.2 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.2769, allocations: 35.98 kB / 388.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.2774, allocations: 103.9 kB / 388.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/0.2777, allocations: 132.6 kB / 388.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/0.2778, allocations: 43.98 kB / 388.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001104/0.2789, allocations: 0.9313 MB / 389.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2789, allocations: 4 kB / 389.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002161/0.281, allocations: 0.6523 MB / 390.1 MB, free: 10.01 MB / 346.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.0003624/0.2814, allocations: 211.8 kB / 390.4 MB, free: 9.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002773/0.2842, allocations: 3.003 MB / 393.4 MB, free: 6.672 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.2842, allocations: 4 kB / 393.4 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/0.2859, allocations: 2.292 MB / 395.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.2875, allocations: 0.608 MB / 396.3 MB, free: 3.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007164/0.2947, allocations: 4.925 MB / 401.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009781/0.2957, allocations: 0.7981 MB / 402 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008562/0.2965, allocations: 393.4 kB / 402.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.2968, allocations: 128.5 kB / 402.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.512e-06/0.2968, allocations: 0 / 402.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of Templates: time 0.1736/0.4704, allocations: 39.41 MB / 441.9 MB, free: 108.7 MB / 378.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.790151343215257]