Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.001297/0.001297, 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.001114/0.001114, 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.915/0.915, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.02677/0.02677, allocations: 7.117 MB / 266.3 MB, free: 6.316 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.724e-05, allocations: 2.281 kB / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.006871/0.006898, allocations: 7.657 MB / 400 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004517/0.01142, allocations: 2.53 MB / 402.6 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.01251, allocations: 35.88 kB / 402.6 MB, free: 9.715 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007945/0.0133, allocations: 377.4 kB / 403 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002788/0.01609, allocations: 1.485 MB / 404.5 MB, free: 7.852 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.01643, allocations: 143.7 kB / 404.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002881/0.01931, allocations: 2.571 MB / 407.2 MB, free: 5.133 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009749/0.02029, allocations: 0.7752 MB / 408 MB, free: 4.34 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.02174, allocations: 1.383 MB / 409.3 MB, free: 2.953 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001416/0.02315, allocations: 1.313 MB / 410.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003901/0.02354, allocations: 236 kB / 410.9 MB, free: 1.406 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/0.02474, allocations: 0.8347 MB / 411.7 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1587/0.1834, allocations: 1.258 MB / 413 MB, free: 17.84 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001431/0.1848, allocations: 0.8271 MB / 413.8 MB, free: 17.84 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005772/0.1906, allocations: 4.972 MB / 418.8 MB, free: 17.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.1906, allocations: 0 / 418.8 MB, free: 17.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.1906, allocations: 0 / 418.8 MB, free: 17.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002044/0.1908, allocations: 0 / 418.8 MB, free: 17.61 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01115/0.202, allocations: 3.904 MB / 422.7 MB, free: 16.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.202, allocations: 14.12 kB / 422.7 MB, free: 16.22 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001209/0.2032, allocations: 0.5361 MB / 423.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004149/0.2074, allocations: 1.863 MB / 425.1 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002803/0.2102, allocations: 1.317 MB / 426.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.2103, allocations: 146.4 kB / 426.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000557/0.2108, allocations: 205.5 kB / 426.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/0.224, allocations: 7.943 MB / 434.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.499e-05/0.2241, allocations: 30.5 kB / 434.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.2244, allocations: 92.88 kB / 434.8 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001779/0.2261, allocations: 1.848 MB / 436.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/0.2372, allocations: 7.097 MB / 443.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03022/0.2675, allocations: 22.69 MB / 466.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003496/0.271, allocations: 1.901 MB / 468.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009024/0.2719, allocations: 0.7657 MB / 469.1 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004651/0.2765, allocations: 3.112 MB / 472.2 MB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.2765, allocations: 44.78 kB / 472.3 MB, free: 9.148 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 3.747e-06/0.2765, allocations: 4 kB / 472.3 MB, free: 9.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.01076/0.2873, allocations: 6.967 MB / 479.2 MB, free: 2.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000216/0.2875, allocations: 72.72 kB / 479.3 MB, free: 2.086 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00327/0.2908, allocations: 2.73 MB / 482 MB, free: 15.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.291, allocations: 52.91 kB / 482.1 MB, free: 15.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009934/0.292, allocations: 2.146 MB / 484.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004523/0.2924, allocations: 0.5824 MB / 484.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000762/0.2932, allocations: 0.7746 MB / 485.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.411e-05/0.2933, allocations: 305.1 kB / 485.9 MB, free: 11.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.2949, allocations: 1.308 MB / 487.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/0.2973, allocations: 3.423 MB / 490.6 MB, free: 5.715 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004621/0.3019, allocations: 5.07 MB / 495.7 MB, free: 15.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.625e-05/0.302, allocations: 23.94 kB / 495.7 MB, free: 15.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007028/0.309, allocations: 4.812 MB / 0.4888 GB, free: 10.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.948e-05/0.3091, allocations: 36 kB / 0.4888 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.773e-05/0.3091, allocations: 76.91 kB / 0.4889 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003358/0.3095, allocations: 192.8 kB / 0.4891 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/0.3114, allocations: 0.9046 MB / 0.49 GB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.313, allocations: 2.152 MB / 0.4921 GB, free: 7.402 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.315, allocations: 211.8 kB / 0.4923 GB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003632/0.3153, allocations: 232 kB / 0.4925 GB, free: 6.969 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (478): * Single equations (assignments): 473 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002314/0.3176, allocations: 1.567 MB / 0.494 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003236/0.318, allocations: 238.5 kB / 0.4943 GB, free: 5.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.3203, allocations: 1.922 MB / 0.4961 GB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-05/0.3204, allocations: 31.98 kB / 0.4962 GB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3204, allocations: 0 / 0.4962 GB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.3204, allocations: 11.97 kB / 0.4962 GB, free: 3.184 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006973/0.3274, allocations: 5.136 MB / 0.5012 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.3274, allocations: 4 kB / 0.5012 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.3279, allocations: 240.3 kB / 0.5014 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003741/0.3283, allocations: 92.72 kB / 0.5015 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.911e-05/0.3284, allocations: 27.98 kB / 0.5015 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.3296, allocations: 1.898 MB / 0.5034 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3296, allocations: 4.062 kB / 0.5034 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/0.3327, allocations: 3.018 MB / 0.5063 GB, free: 8.578 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005869/0.3333, allocations: 234.5 kB / 0.5066 GB, free: 8.348 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/0.3335, allocations: 24 kB / 0.5066 GB, free: 8.324 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004766/0.334, allocations: 79.83 kB / 0.5067 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.3341, allocations: 92.72 kB / 0.5068 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.197e-05/0.3342, allocations: 47.03 kB / 0.5068 GB, free: 8.109 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002087/0.3363, allocations: 1.672 MB / 0.5084 GB, free: 6.422 MB / 410.7 MB Notification: Performance of sort global known variables: time 3e-08/0.3363, allocations: 4 kB / 0.5084 GB, free: 6.418 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002306/0.3386, allocations: 0.6561 MB / 0.5091 GB, free: 5.762 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * 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,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003366/0.342, allocations: 3.65 MB / 0.5126 GB, free: 2.066 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004069/0.346, allocations: 2.987 MB / 0.5156 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.346, allocations: 0 / 0.5156 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.3472, allocations: 0.9198 MB / 0.5165 GB, free: 14.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.3487, allocations: 390.5 kB / 0.5168 GB, free: 13.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03565/0.3844, allocations: 27.27 MB / 0.5435 GB, free: 15.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002247/0.3866, allocations: 2.001 MB / 0.5454 GB, free: 13.77 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002004/0.3886, allocations: 1.208 MB / 0.5466 GB, free: 12.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/0.39, allocations: 1.285 MB / 0.5478 GB, free: 11.27 MB / 458.7 MB Notification: Performance of SimCode: time 1.482e-06/0.39, allocations: 0 / 0.5478 GB, free: 11.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.208/0.5979, allocations: 46.94 MB / 0.5937 GB, free: 154 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.06/9.658, allocations: 7.297 kB / 0.5937 GB, free: 154 MB / 474.7 MB " [Timeout remaining time 650] (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.467365087009966] Failed to read output from testmodel.py, exit status != 0: 9.764806265942752 9.769760574 9.577783723 Calling exit ...