Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001131/0.001131, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.005309/0.005309, allocations: 160.6 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8812/0.8812, allocations: 177 MB / 204.9 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 325.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/2.03e-05, allocations: 3.125 kB / 325.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008009/0.008029, allocations: 10.06 MB / 335.9 MB, free: 5.113 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004247/0.01228, allocations: 3.419 MB / 339.3 MB, free: 1.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006969/0.01297, allocations: 83.44 kB / 339.4 MB, free: 1.598 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.01415, allocations: 0.8421 MB / 340.2 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.01574, allocations: 1.013 MB / 341.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004834/0.01622, allocations: 451.2 kB / 341.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002261/0.01848, allocations: 3.89 MB / 345.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.01977, allocations: 1.549 MB / 347.1 MB, free: 9.77 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.02197, allocations: 2.468 MB / 349.6 MB, free: 7.297 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.0234, allocations: 1.753 MB / 351.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003372/0.02374, allocations: 420 kB / 351.7 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005356/0.02428, allocations: 0.492 MB / 352.2 MB, free: 4.637 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006968/0.02497, allocations: 1.243 MB / 353.5 MB, free: 3.391 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009347/0.02591, allocations: 1.349 MB / 354.8 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00365/0.02956, allocations: 5.628 MB / 360.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.02956, allocations: 0 / 360.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.02956, allocations: 0 / 360.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.02961, allocations: 3.938 kB / 360.4 MB, free: 12.39 MB / 330.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.004522/0.03413, allocations: 3.805 MB / 364.2 MB, free: 8.531 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.03417, allocations: 15.98 kB / 364.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005754/0.03475, allocations: 410.6 kB / 364.7 MB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/0.03688, allocations: 2.004 MB / 366.7 MB, free: 6.062 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.831e-05/0.03697, allocations: 214.1 kB / 366.9 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002583/0.03723, allocations: 292.3 kB / 367.2 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004091/0.04132, allocations: 4.163 MB / 371.3 MB, free: 1.242 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.978e-05/0.04137, allocations: 7.953 kB / 371.3 MB, free: 1.234 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001712/0.04154, allocations: 119.9 kB / 371.5 MB, free: 1.117 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.762e-05/0.04162, allocations: 125.5 kB / 371.6 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0032/0.04482, allocations: 3.242 MB / 374.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0102/0.05502, allocations: 10.34 MB / 385.2 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.05666, allocations: 1.734 MB / 386.9 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.05788, allocations: 1.157 MB / 388 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.05803, allocations: 45.28 kB / 388.1 MB, free: 200 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.05807, allocations: 47.88 kB / 388.1 MB, free: 144 kB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.506e-06/0.05808, allocations: 4 kB / 388.1 MB, free: 140 kB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.008403/0.06648, allocations: 6.508 MB / 394.6 MB, free: 9.578 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.06653, allocations: 68.72 kB / 394.7 MB, free: 9.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.06834, allocations: 1.908 MB / 396.6 MB, free: 7.594 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.113e-05/0.06841, allocations: 53.7 kB / 396.7 MB, free: 7.535 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006309/0.06904, allocations: 1.412 MB / 398.1 MB, free: 6.109 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.06932, allocations: 0.5267 MB / 398.6 MB, free: 5.578 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006028/0.06992, allocations: 347.4 kB / 399 MB, free: 5.234 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.254e-05/0.06999, allocations: 305.1 kB / 399.2 MB, free: 4.934 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.07083, allocations: 0.8666 MB / 400.1 MB, free: 4.066 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.0719, allocations: 1.362 MB / 401.5 MB, free: 2.492 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001994/0.0739, allocations: 2.334 MB / 403.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.0739, allocations: 12 kB / 403.8 MB, free: 15.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00362/0.07752, allocations: 3.172 MB / 407 MB, free: 12.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.07755, allocations: 12 kB / 407 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.07757, allocations: 16 kB / 407 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.07881, allocations: 0.8562 MB / 407.9 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006645/0.07948, allocations: 343.4 kB / 408.2 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/0.09071, allocations: 19.09 MB / 427.3 MB, free: 7.258 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009825/0.09169, allocations: 108 kB / 427.4 MB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.334e-05/0.09178, allocations: 68 kB / 427.5 MB, free: 7.086 MB / 394.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%), (2,1,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.00141/0.09319, allocations: 0.9383 MB / 428.4 MB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002371/0.09343, allocations: 206.7 kB / 428.6 MB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002624/0.09605, allocations: 2.533 MB / 431.2 MB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.09606, allocations: 16 kB / 431.2 MB, free: 3.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.09607, allocations: 4 kB / 431.2 MB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.09608, allocations: 15.95 kB / 431.2 MB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005683/0.1018, allocations: 5.111 MB / 436.3 MB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.1018, allocations: 0 / 436.3 MB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000407/0.1022, allocations: 207.6 kB / 436.5 MB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009897/0.1032, allocations: 0.7309 MB / 437.2 MB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.93e-05/0.1032, allocations: 39.98 kB / 437.3 MB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1839/0.2871, allocations: 16.8 MB / 454.1 MB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.2871, allocations: 9.344 kB / 454.1 MB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005091/0.2922, allocations: 3.704 MB / 457.8 MB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.2933, allocations: 397.1 kB / 458.2 MB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.2935, allocations: 34.94 kB / 458.2 MB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/0.2943, allocations: 110 kB / 458.3 MB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/0.2946, allocations: 144.2 kB / 458.5 MB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.779e-05/0.2947, allocations: 46.78 kB / 458.5 MB, free: 106.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001683/0.2964, allocations: 1.267 MB / 459.8 MB, free: 105.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2964, allocations: 2.875 kB / 459.8 MB, free: 105.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002802/0.2992, allocations: 0.6557 MB / 460.4 MB, free: 105.8 MB / 410.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%), (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.0004336/0.2996, allocations: 207.9 kB / 460.6 MB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003809/0.3035, allocations: 3.364 MB / 464 MB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.3035, allocations: 0 / 464 MB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001831/0.3053, allocations: 2.14 MB / 466.1 MB, free: 101.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/0.3079, allocations: 0.6031 MB / 466.7 MB, free: 101.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008248/0.3161, allocations: 5.663 MB / 472.4 MB, free: 96.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.3177, allocations: 1.698 MB / 474.1 MB, free: 95.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005369/0.3182, allocations: 140.3 kB / 474.2 MB, free: 94.92 MB / 410.7 MB Notification: Performance of SimCode: time 1.864e-06/0.3182, allocations: 0 / 474.2 MB, free: 94.92 MB / 410.7 MB Notification: Performance of Templates: time 0.2602/0.5784, allocations: 188.4 MB / 0.6471 GB, free: 139.6 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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: 10.490777593106031]