Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) 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(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008164/0.0008164, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005118/0.005118, allocations: 170.8 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2169/0.2169, allocations: 9.117 MB / 300.5 MB, free: 2.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003332, allocations: 11.94 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 52.43 MB / 416.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.2523/0.3696, allocations: 13.75 MB / 429.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007042/0.3766, allocations: 3.727 MB / 433.6 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.3785, allocations: 45.59 kB / 433.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006964/0.3792, allocations: 256.4 kB / 433.9 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.3814, allocations: 1.06 MB / 435 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.3817, allocations: 66.78 kB / 435 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002739/0.3844, allocations: 2.89 MB / 437.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.3848, allocations: 175.6 kB / 438.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007421/0.3855, allocations: 0.5863 MB / 438.7 MB, free: 33.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.3868, allocations: 1.062 MB / 439.8 MB, free: 33.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002119/0.387, allocations: 101.4 kB / 439.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.3881, allocations: 0.7055 MB / 440.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006789/0.3888, allocations: 0.9519 MB / 441.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008887/0.3897, allocations: 1.245 MB / 442.8 MB, free: 32.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003/0.3927, allocations: 3.922 MB / 446.7 MB, free: 30.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3928, allocations: 0 / 446.7 MB, free: 30.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3928, allocations: 0 / 446.7 MB, free: 30.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.399e-05/0.3928, allocations: 0 / 446.7 MB, free: 30.92 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.006212/0.399, allocations: 3.077 MB / 449.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3991, allocations: 10.03 kB / 449.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006305/0.4054, allocations: 1.747 MB / 451.5 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001885/0.4073, allocations: 1.154 MB / 452.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.152e-05/0.4074, allocations: 117 kB / 452.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003372/0.4078, allocations: 143.2 kB / 452.9 MB, free: 28.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009006/0.4168, allocations: 7.054 MB / 460 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.065e-05/0.4169, allocations: 18.72 kB / 460 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.4171, allocations: 76.75 kB / 460.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002669/0.4198, allocations: 1.722 MB / 461.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.4331, allocations: 6.466 MB / 468.3 MB, free: 22.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03294/0.4661, allocations: 20.97 MB / 489.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/0.4704, allocations: 1.933 MB / 491.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000962/0.4714, allocations: 0.5972 MB / 491.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004533/0.4759, allocations: 3.342 MB / 495.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.476, allocations: 39.12 kB / 495.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 3.807e-06/0.476, allocations: 4 kB / 495.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003643/0.4796, allocations: 1.815 MB / 497 MB, free: 1.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.4797, allocations: 59.97 kB / 497 MB, free: 1.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00293/0.4826, allocations: 2.192 MB / 499.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.62e-05/0.4827, allocations: 41.69 kB / 499.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001392/0.4841, allocations: 1.821 MB / 0.4893 GB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.4845, allocations: 367.3 kB / 0.4897 GB, free: 13.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003335/0.4848, allocations: 260.5 kB / 0.4899 GB, free: 12.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.485, allocations: 301.1 kB / 0.4902 GB, free: 12.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.4867, allocations: 1.006 MB / 0.4912 GB, free: 11.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002999/0.4897, allocations: 2.905 MB / 0.494 GB, free: 7.824 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004937/0.4946, allocations: 4.195 MB / 0.4981 GB, free: 2.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.763e-05/0.4947, allocations: 23.94 kB / 0.4981 GB, free: 2.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006788/0.5015, allocations: 3.818 MB / 0.5019 GB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.026e-05/0.5016, allocations: 32.22 kB / 0.5019 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.51e-05/0.5016, allocations: 75.94 kB / 0.502 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.218e-05/0.5017, allocations: 88 kB / 0.5021 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002139/0.5039, allocations: 0.7135 MB / 0.5028 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001043/0.504, allocations: 131.5 kB / 0.5029 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002412/0.5064, allocations: 467 kB / 0.5033 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/0.5067, allocations: 196 kB / 0.5035 GB, free: 13.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (387): * Single equations (assignments): 383 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002236/0.5089, allocations: 1.398 MB / 0.5049 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.5092, allocations: 169.8 kB / 0.505 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.5111, allocations: 1.2 MB / 0.5062 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/0.5113, allocations: 23.98 kB / 0.5062 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.5113, allocations: 0 / 0.5062 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.5113, allocations: 7.984 kB / 0.5062 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006512/0.5178, allocations: 3.932 MB / 0.5101 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.5178, allocations: 4 kB / 0.5101 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006011/0.5185, allocations: 135.8 kB / 0.5102 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.646e-05/0.5185, allocations: 4 kB / 0.5102 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-05/0.5185, allocations: 19.98 kB / 0.5102 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.5186, allocations: 11.94 kB / 0.5103 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5186, allocations: 4.281 kB / 0.5103 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.5214, allocations: 1.957 MB / 0.5122 GB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005123/0.522, allocations: 274.7 kB / 0.5124 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.5221, allocations: 15.98 kB / 0.5124 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005654/0.5227, allocations: 35.91 kB / 0.5125 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.153e-05/0.5228, allocations: 56.44 kB / 0.5125 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.525e-05/0.5229, allocations: 31.94 kB / 0.5126 GB, free: 3.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002218/0.5251, allocations: 1.416 MB / 0.514 GB, free: 2.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5251, allocations: 0 / 0.514 GB, free: 2.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003077/0.5282, allocations: 0.7042 MB / 0.5146 GB, free: 1.609 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.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 (69): * Single equations (assignments): 65 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003669/0.5286, allocations: 165 kB / 0.5148 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003832/0.5324, allocations: 2.237 MB / 0.517 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.5324, allocations: 0 / 0.517 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008071/0.5333, allocations: 0.5241 MB / 0.5175 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.5353, allocations: 295.6 kB / 0.5178 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.546, allocations: 6.696 MB / 0.5243 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002615/0.5486, allocations: 2.282 MB / 0.5265 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00273/0.5514, allocations: 0.9962 MB / 0.5275 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.5518, allocations: 135.4 kB / 0.5276 GB, free: 4.215 MB / 398.1 MB Notification: Performance of SimCode: time 1.653e-06/0.5518, allocations: 0 / 0.5276 GB, free: 4.215 MB / 398.1 MB Notification: Performance of Templates: time 0.0361/0.5879, allocations: 17.9 MB / 0.5451 GB, free: 2.426 MB / 414.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & ./PlanarMechanics_PlanarMechanics.Examples.CounterSpin -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)