Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000847/0.000847, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000887/0.000887, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9529/0.9529, allocations: 177.1 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.008221/0.008221, allocations: 1.2 MB / 261.4 MB, free: 11.75 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 331.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.298e-05/1.408e-05, allocations: 8.703 kB / 331.6 MB, free: 3.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004722/0.004736, allocations: 5.523 MB / 337.1 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.007169, allocations: 1.912 MB / 339 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003801/0.007549, allocations: 47.69 kB / 339.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006638/0.008213, allocations: 369.7 kB / 339.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009722/0.009185, allocations: 468.9 kB / 339.9 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.009467, allocations: 207.7 kB / 340.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.01067, allocations: 1.854 MB / 341.9 MB, free: 8.652 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007517/0.01142, allocations: 0.8248 MB / 342.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/0.01271, allocations: 1.314 MB / 344.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007673/0.01348, allocations: 0.9236 MB / 345 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001843/0.01366, allocations: 208 kB / 345.2 MB, free: 5.348 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.01394, allocations: 232 kB / 345.4 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003023/0.01424, allocations: 0.5648 MB / 346 MB, free: 4.555 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004613/0.0147, allocations: 0.6704 MB / 346.7 MB, free: 3.883 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.016, allocations: 1.569 MB / 348.2 MB, free: 2.309 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.016, allocations: 0 / 348.2 MB, free: 2.309 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.016, allocations: 4 kB / 348.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.01601, allocations: 0 / 348.2 MB, free: 2.305 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.001951/0.01796, allocations: 2.087 MB / 350.3 MB, free: 172 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.01799, allocations: 12.03 kB / 350.3 MB, free: 160 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004102/0.0184, allocations: 330.5 kB / 350.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008578/0.01926, allocations: 0.9017 MB / 351.6 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.195e-05/0.01932, allocations: 111.3 kB / 351.7 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.01946, allocations: 148.3 kB / 351.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.02083, allocations: 1.221 MB / 353 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.02086, allocations: 11.92 kB / 353 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.283e-05/0.02094, allocations: 60 kB / 353.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.904e-05/0.02099, allocations: 58.94 kB / 353.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.02157, allocations: 431.8 kB / 353.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003917/0.02549, allocations: 4.053 MB / 357.6 MB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005672/0.02606, allocations: 0.5163 MB / 358.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.02628, allocations: 208.8 kB / 358.4 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.02632, allocations: 16.59 kB / 358.4 MB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.02634, allocations: 46.05 kB / 358.4 MB, free: 7.809 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 1.933e-06/0.02634, allocations: 0 / 358.4 MB, free: 7.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.0029/0.02924, allocations: 1.878 MB / 360.3 MB, free: 5.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.02927, allocations: 60.06 kB / 360.4 MB, free: 5.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004773/0.02975, allocations: 0.7021 MB / 361.1 MB, free: 5.098 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002871/0.03003, allocations: 37.7 kB / 361.1 MB, free: 5.055 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.03035, allocations: 0.7487 MB / 361.8 MB, free: 4.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.03051, allocations: 305.4 kB / 362.1 MB, free: 3.996 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.03068, allocations: 160.2 kB / 362.3 MB, free: 3.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.03086, allocations: 0.6053 MB / 362.9 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.031, allocations: 101.9 kB / 363 MB, free: 3.113 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.03124, allocations: 336.8 kB / 363.3 MB, free: 2.707 MB / 330.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0005964/0.03184, allocations: 0.6692 MB / 364 MB, free: 1.961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.03184, allocations: 0 / 364 MB, free: 1.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00102/0.03286, allocations: 0.8113 MB / 364.8 MB, free: 1.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.03287, allocations: 6.812 kB / 364.8 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.03288, allocations: 4 kB / 364.8 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006886/0.03357, allocations: 338.1 kB / 365.2 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.03385, allocations: 127.8 kB / 365.3 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003834/0.03768, allocations: 6.526 MB / 371.8 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.03791, allocations: 28 kB / 371.8 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.084e-05/0.03796, allocations: 23.98 kB / 371.9 MB, free: 9.727 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smpm.phi = $START.smpm.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,15,81.2%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002395/0.0382, allocations: 200.4 kB / 372 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.03831, allocations: 119.4 kB / 372.2 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009421/0.03925, allocations: 0.739 MB / 372.9 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.03926, allocations: 8 kB / 372.9 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.03926, allocations: 4 kB / 372.9 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.03927, allocations: 3.984 kB / 372.9 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.04148, allocations: 1.987 MB / 374.9 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.04149, allocations: 4 kB / 374.9 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.04175, allocations: 103.9 kB / 375 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000872/0.04262, allocations: 307.8 kB / 375.3 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.04266, allocations: 23.98 kB / 375.3 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/0.04562, allocations: 6.259 MB / 381.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.04562, allocations: 0 / 381.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.04699, allocations: 1.027 MB / 382.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.04717, allocations: 163.3 kB / 382.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.04724, allocations: 19.98 kB / 382.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.04747, allocations: 39.98 kB / 382.8 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.429e-05/0.04757, allocations: 60.53 kB / 382.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.0476, allocations: 19.98 kB / 382.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002417/0.04784, allocations: 414.8 kB / 383.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04784, allocations: 0 / 383.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005788/0.04842, allocations: 308 kB / 383.6 MB, free: 13.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.phi,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(4,15,81.2%), (1,2,100.0%), (1,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.0001234/0.04854, allocations: 134.4 kB / 383.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.04959, allocations: 1.108 MB / 384.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.04959, allocations: 3.938 kB / 384.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007957/0.05039, allocations: 0.8961 MB / 385.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007072/0.05109, allocations: 271 kB / 386 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.05375, allocations: 2.547 MB / 388.6 MB, free: 8.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.05403, allocations: 435.5 kB / 389 MB, free: 7.883 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002274/0.05426, allocations: 103.6 kB / 389.1 MB, free: 7.777 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.05469, allocations: 322 kB / 389.4 MB, free: 7.461 MB / 362.7 MB Notification: Performance of SimCode: time 1.093e-06/0.05469, allocations: 0 / 389.4 MB, free: 7.461 MB / 362.7 MB Notification: Performance of Templates: time 0.02132/0.07601, allocations: 18.66 MB / 408.1 MB, free: 5.094 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & (cd run_cvode && ../ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_gbode.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_gbode.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_gbode.sim & (cd run_gbode && ../ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_gbode.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_ida.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_ida.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_ida.sim & (cd run_ida && ../ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.690786018036306]