Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 221.5 MB / 229.6 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009536/0.0009536, allocations: 84.91 kB / 280.5 MB, free: 1.164 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03946/0.03946, allocations: 8.841 MB / 340.1 MB, free: 5.598 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.416e-05/1.418e-05, allocations: 4 kB / 398.8 MB, free: 66.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09556, allocations: 52.39 MB / 451.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.4665, allocations: 85.59 MB / 0.5242 GB, free: 7.277 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.4668, allocations: 74.09 kB / 0.5243 GB, free: 7.246 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1335/0.6003, allocations: 53.3 MB / 0.5763 GB, free: 9.117 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6003, allocations: 0 / 0.5763 GB, free: 9.117 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001053/0.6004, allocations: 44 kB / 0.5763 GB, free: 9.074 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.008787/0.6092, allocations: 2.608 MB / 0.5789 GB, free: 6.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.6093, allocations: 12.02 kB / 0.5789 GB, free: 6.398 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009683/0.619, allocations: 1.884 MB / 0.5807 GB, free: 4.508 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004128/0.6232, allocations: 1.523 MB / 0.5822 GB, free: 2.941 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.6233, allocations: 80 kB / 0.5823 GB, free: 2.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.6246, allocations: 151.9 kB / 0.5824 GB, free: 2.715 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009104/0.6337, allocations: 4.816 MB / 0.5872 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/0.6476, allocations: 6.295 MB / 0.5933 GB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.97e-05/0.6477, allocations: 11.88 kB / 0.5933 GB, free: 7.293 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003784/0.6481, allocations: 12 kB / 0.5933 GB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001382/0.6495, allocations: 0.786 MB / 0.5941 GB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03466/0.6842, allocations: 20.77 MB / 0.6144 GB, free: 1.215 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.6868, allocations: 1.809 MB / 0.6161 GB, free: 15.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008461/0.6877, allocations: 0.5909 MB / 0.6167 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004578/0.6923, allocations: 2.477 MB / 0.6191 GB, free: 12.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.6924, allocations: 43.33 kB / 0.6192 GB, free: 11.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=100): time 5.921e-06/0.6924, allocations: 4 kB / 0.6192 GB, free: 11.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=114): time 0.008905/0.7013, allocations: 4.428 MB / 0.6235 GB, free: 7.465 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.7014, allocations: 60.19 kB / 0.6236 GB, free: 7.395 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.704, allocations: 1.692 MB / 0.6252 GB, free: 5.695 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.7041, allocations: 25.7 kB / 0.6252 GB, free: 5.664 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.7054, allocations: 1.913 MB / 0.6271 GB, free: 3.719 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.7059, allocations: 430.2 kB / 0.6275 GB, free: 3.293 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.706, allocations: 0 / 0.6275 GB, free: 3.293 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003035/0.7063, allocations: 494.3 kB / 0.628 GB, free: 2.801 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.7079, allocations: 1.057 MB / 0.629 GB, free: 1.742 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002956/0.7109, allocations: 3.033 MB / 0.632 GB, free: 13.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.7134, allocations: 1.816 MB / 0.6338 GB, free: 11.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.38e-05/0.7134, allocations: 23.95 kB / 0.6338 GB, free: 11.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=454) (initialization): time 0.006513/0.7199, allocations: 3.823 MB / 0.6375 GB, free: 8.039 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.084e-05/0.72, allocations: 32 kB / 0.6375 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.808e-05/0.7201, allocations: 72 kB / 0.6376 GB, free: 7.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005041/0.7206, allocations: 212.8 kB / 0.6378 GB, free: 7.727 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00254/0.7232, allocations: 0.7805 MB / 0.6386 GB, free: 6.945 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002902/0.7261, allocations: 2.389 MB / 0.6409 GB, free: 4.438 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/0.7289, allocations: 111.9 kB / 0.641 GB, free: 4.328 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005952/0.7295, allocations: 208 kB / 0.6412 GB, free: 4.125 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 322 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (419): * Single equations (assignments): 414 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000567/0.7301, allocations: 288.9 kB / 0.6415 GB, free: 3.836 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002273/0.7324, allocations: 1.297 MB / 0.6428 GB, free: 2.523 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.7326, allocations: 157.9 kB / 0.6429 GB, free: 2.367 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.735, allocations: 1.421 MB / 0.6443 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/0.7352, allocations: 23.98 kB / 0.6443 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.7352, allocations: 4 kB / 0.6443 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.7352, allocations: 11.92 kB / 0.6443 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2557/0.9909, allocations: 3.817 MB / 0.6481 GB, free: 130.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.9909, allocations: 1.062 kB / 0.6481 GB, free: 130.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000694/0.9916, allocations: 146.6 kB / 0.6482 GB, free: 130.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003849/0.992, allocations: 113.6 kB / 0.6483 GB, free: 130.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.39e-05/0.9921, allocations: 8.328 kB / 0.6483 GB, free: 130.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.9943, allocations: 1.91 MB / 0.6502 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.9943, allocations: 1.531 kB / 0.6502 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003862/0.9982, allocations: 2.339 MB / 0.6525 GB, free: 128.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006445/0.9988, allocations: 246.2 kB / 0.6527 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.999, allocations: 2.75 kB / 0.6527 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006471/0.9997, allocations: 41.42 kB / 0.6527 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.9999, allocations: 58.72 kB / 0.6528 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.608e-05/0.9999, allocations: 37.3 kB / 0.6528 GB, free: 128.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001868/1.002, allocations: 1.138 MB / 0.6539 GB, free: 128.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.002, allocations: 0 / 0.6539 GB, free: 128.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002984/1.005, allocations: 0.5023 MB / 0.6544 GB, free: 128.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003862/1.009, allocations: 3.294 MB / 0.6577 GB, free: 127.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004529/1.013, allocations: 2.466 MB / 0.6601 GB, free: 127.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.013, allocations: 3.656 kB / 0.6601 GB, free: 127.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/1.014, allocations: 0.7397 MB / 0.6608 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/1.016, allocations: 182.6 kB / 0.661 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/1.028, allocations: 5.169 MB / 0.666 GB, free: 126.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/1.03, allocations: 2.405 MB / 0.6684 GB, free: 125.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002316/1.033, allocations: 1.036 MB / 0.6694 GB, free: 125.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/1.034, allocations: 1.123 MB / 0.6705 GB, free: 125.5 MB / 458.7 MB Notification: Performance of SimCode: time 9.02e-07/1.034, allocations: 0 / 0.6705 GB, free: 125.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06397/1.098, allocations: 39.14 MB / 0.7087 GB, free: 111 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001675/1.098, allocations: 124.7 kB / 0.7088 GB, free: 110.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/4.048, allocations: 4 kB / 0.7088 GB, free: 110.8 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)