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/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.001302/0.001302, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001456/0.001456, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9134/0.9134, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02754/0.02754, allocations: 7.118 MB / 266.3 MB, free: 6.312 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.295e-06/2.295e-06, allocations: 0 / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.645e-05, allocations: 2.281 kB / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.005959/0.005985, allocations: 6.211 MB / 398.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.009173, allocations: 2.269 MB / 400.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.009687, allocations: 27.94 kB / 400.9 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005796/0.01027, allocations: 333.9 kB / 401.2 MB, free: 11.1 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002245/0.01251, allocations: 1.349 MB / 402.6 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.01274, allocations: 75.83 kB / 402.6 MB, free: 9.672 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.01456, allocations: 2.189 MB / 404.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000607/0.01516, allocations: 0.5869 MB / 405.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009603/0.01612, allocations: 1.161 MB / 406.6 MB, free: 5.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009359/0.01706, allocations: 1.157 MB / 407.7 MB, free: 4.555 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.01726, allocations: 200 kB / 407.9 MB, free: 4.359 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008377/0.0181, allocations: 0.7878 MB / 408.7 MB, free: 3.57 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006379/0.01874, allocations: 1.11 MB / 409.8 MB, free: 2.457 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005234/0.01926, allocations: 0.6929 MB / 410.5 MB, free: 1.762 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1743/0.1935, allocations: 4.468 MB / 415 MB, free: 18.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1935, allocations: 0.9375 kB / 415 MB, free: 18.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1935, allocations: 1.062 kB / 415 MB, free: 18.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001591/0.1937, allocations: 1.75 kB / 415 MB, free: 18.95 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.008489/0.2022, allocations: 3.352 MB / 418.3 MB, free: 17.72 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.2022, allocations: 9.562 kB / 418.4 MB, free: 17.72 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00115/0.2034, allocations: 481 kB / 418.8 MB, free: 17.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003934/0.2073, allocations: 1.793 MB / 420.6 MB, free: 17.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.2095, allocations: 1.15 MB / 421.8 MB, free: 17.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.098e-05/0.2096, allocations: 120.8 kB / 421.9 MB, free: 17.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002666/0.2099, allocations: 157.2 kB / 422 MB, free: 17.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009/0.2189, allocations: 7.186 MB / 429.2 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.692e-05/0.219, allocations: 23.95 kB / 429.3 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002162/0.2192, allocations: 79.73 kB / 429.3 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001919/0.2211, allocations: 1.74 MB / 431.1 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009351/0.2305, allocations: 6.516 MB / 437.6 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02352/0.254, allocations: 19.89 MB / 457.5 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/0.2566, allocations: 1.547 MB / 459 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006883/0.2573, allocations: 0.6245 MB / 459.6 MB, free: 5.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003443/0.2607, allocations: 2.098 MB / 461.7 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.2608, allocations: 43.22 kB / 461.8 MB, free: 3.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 3.337e-06/0.2608, allocations: 0 / 461.8 MB, free: 3.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=120): time 0.008222/0.269, allocations: 5.457 MB / 467.2 MB, free: 13.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.269, allocations: 60.41 kB / 467.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/0.2717, allocations: 2.382 MB / 469.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.669e-05/0.2718, allocations: 44.28 kB / 469.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.2729, allocations: 1.895 MB / 471.6 MB, free: 9.516 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002926/0.2732, allocations: 472.1 kB / 472.1 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006149/0.2738, allocations: 0.6594 MB / 472.7 MB, free: 8.395 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.2739, allocations: 301.1 kB / 473 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.2751, allocations: 1.099 MB / 474.1 MB, free: 6.996 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.277, allocations: 2.96 MB / 477.1 MB, free: 3.152 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003839/0.2808, allocations: 4.36 MB / 481.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.534e-05/0.2809, allocations: 20 kB / 481.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.005998/0.2869, allocations: 4.131 MB / 485.6 MB, free: 9.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/0.2869, allocations: 32 kB / 485.6 MB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.485e-05/0.287, allocations: 68 kB / 485.7 MB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003911/0.2874, allocations: 200.7 kB / 485.9 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.2888, allocations: 0.7252 MB / 486.6 MB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.291, allocations: 2.576 MB / 489.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.2927, allocations: 170.4 kB / 489.4 MB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/0.2929, allocations: 200 kB / 489.6 MB, free: 5.812 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 390 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002111/0.295, allocations: 1.431 MB / 491 MB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.2953, allocations: 194.7 kB / 491.2 MB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002085/0.2974, allocations: 1.596 MB / 492.8 MB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.247e-05/0.2974, allocations: 27.92 kB / 492.8 MB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.2975, allocations: 8 kB / 492.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.2975, allocations: 7.984 kB / 492.8 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006703/0.3042, allocations: 4.597 MB / 497.4 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/0.3042, allocations: 4 kB / 497.4 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003768/0.3046, allocations: 156.1 kB / 497.6 MB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002181/0.3048, allocations: 120.8 kB / 497.7 MB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/0.3048, allocations: 20 kB / 497.7 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.3067, allocations: 2.043 MB / 499.8 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.3067, allocations: 19.92 kB / 499.8 MB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/0.3095, allocations: 2.523 MB / 0.4905 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005941/0.3101, allocations: 198.7 kB / 0.4907 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.3102, allocations: 16 kB / 0.4907 GB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003692/0.3106, allocations: 51.94 kB / 0.4908 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3107, allocations: 76.88 kB / 0.4909 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/0.3108, allocations: 42.48 kB / 0.4909 GB, free: 8.449 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001799/0.3126, allocations: 1.465 MB / 0.4923 GB, free: 6.961 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3126, allocations: 0 / 0.4923 GB, free: 6.961 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001864/0.3144, allocations: 0.5546 MB / 0.4929 GB, free: 6.406 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.w) * 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 (88): * Single equations (assignments): 83 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003051/0.3175, allocations: 3.163 MB / 0.496 GB, free: 3.184 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003436/0.3209, allocations: 2.536 MB / 0.4984 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3209, allocations: 0 / 0.4984 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008092/0.3217, allocations: 0.7773 MB / 0.4992 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.3232, allocations: 342.7 kB / 0.4995 GB, free: 15.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0309/0.3541, allocations: 23.49 MB / 0.5225 GB, free: 5.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/0.356, allocations: 1.791 MB / 0.5242 GB, free: 3.738 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001588/0.3576, allocations: 1.04 MB / 0.5252 GB, free: 2.695 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/0.3587, allocations: 1.102 MB / 0.5263 GB, free: 1.59 MB / 426.7 MB Notification: Performance of SimCode: time 2.064e-06/0.3587, allocations: 0 / 0.5263 GB, free: 1.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05947/0.4182, allocations: 40.15 MB / 0.5655 GB, free: 9.875 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.488, allocations: 2.812 kB / 0.5655 GB, free: 9.875 MB / 474.7 MB " [Timeout remaining time 651] (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/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.443567828275263] Failed to read output from testmodel.py, exit status != 0: 8.593621795997024 8.757601935 8.561210324 Calling exit ...