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.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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007821/0.0007821, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001003/0.001003, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.3 MB / 240 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1691/0.1691, allocations: 9.114 MB / 300.2 MB, free: 2.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003265/0.0003265, allocations: 8 kB / 363.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1078, allocations: 52.43 MB / 415.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2077/0.3155, allocations: 16.41 MB / 432 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00811/0.3237, allocations: 4.21 MB / 436.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00244/0.3261, allocations: 66.5 kB / 436.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.3277, allocations: 0.7867 MB / 437.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005612/0.3333, allocations: 2.921 MB / 440 MB, free: 32.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.3337, allocations: 77.44 kB / 440.1 MB, free: 32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.3355, allocations: 2.38 MB / 442.5 MB, free: 31.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005995/0.3361, allocations: 0.6287 MB / 443.1 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004751/0.3366, allocations: 0.6727 MB / 443.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009822/0.3376, allocations: 1.11 MB / 444.9 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.3377, allocations: 110.3 kB / 445 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008958/0.3386, allocations: 0.6452 MB / 445.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000571/0.3392, allocations: 0.9558 MB / 446.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003081/0.3395, allocations: 0.5629 MB / 447.2 MB, free: 29.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002116/0.3416, allocations: 3.315 MB / 450.5 MB, free: 28.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3417, allocations: 0 / 450.5 MB, free: 28.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3417, allocations: 0 / 450.5 MB, free: 28.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.274e-05/0.3417, allocations: 0 / 450.5 MB, free: 28.67 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.005679/0.3474, allocations: 2.838 MB / 453.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.3475, allocations: 17.19 kB / 453.3 MB, free: 27.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006387/0.3481, allocations: 489.2 kB / 453.8 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005357/0.3535, allocations: 1.753 MB / 455.6 MB, free: 26.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.3552, allocations: 1.172 MB / 456.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.31e-05/0.3553, allocations: 123.6 kB / 456.9 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002737/0.3556, allocations: 154.4 kB / 457 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008814/0.3644, allocations: 7.194 MB / 464.2 MB, free: 22.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-05/0.3645, allocations: 27.05 kB / 464.2 MB, free: 22.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.3648, allocations: 73.77 kB / 464.3 MB, free: 22.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002895/0.3677, allocations: 1.739 MB / 466 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01287/0.3806, allocations: 6.556 MB / 472.6 MB, free: 19.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02831/0.4089, allocations: 21.19 MB / 493.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003791/0.4127, allocations: 2.01 MB / 495.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009794/0.4138, allocations: 0.673 MB / 496.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004269/0.418, allocations: 3.267 MB / 499.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.4181, allocations: 47.22 kB / 499.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.066e-06/0.4181, allocations: 0 / 499.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01112/0.4292, allocations: 5.513 MB / 0.4935 GB, free: 9.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.4293, allocations: 60.41 kB / 0.4935 GB, free: 9.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.4335, allocations: 2.262 MB / 0.4957 GB, free: 6.707 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.825e-05/0.4335, allocations: 37.7 kB / 0.4958 GB, free: 6.664 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.435, allocations: 1.841 MB / 0.4976 GB, free: 4.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004098/0.4354, allocations: 461.9 kB / 0.498 GB, free: 4.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.4356, allocations: 68 kB / 0.4981 GB, free: 4.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002896/0.4359, allocations: 445.1 kB / 0.4985 GB, free: 3.828 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001904/0.4378, allocations: 1.088 MB / 0.4995 GB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003191/0.441, allocations: 2.955 MB / 0.5024 GB, free: 14.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002779/0.4438, allocations: 1.805 MB / 0.5042 GB, free: 13.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.257e-05/0.4439, allocations: 24 kB / 0.5042 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007068/0.451, allocations: 4.1 MB / 0.5082 GB, free: 8.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.985e-05/0.4511, allocations: 40.02 kB / 0.5083 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.4512, allocations: 67.98 kB / 0.5083 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005234/0.4517, allocations: 212.7 kB / 0.5085 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/0.4538, allocations: 0.7213 MB / 0.5092 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00274/0.4566, allocations: 2.476 MB / 0.5117 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.4587, allocations: 171.8 kB / 0.5118 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003132/0.459, allocations: 199.9 kB / 0.512 GB, free: 4.91 MB / 382.1 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 (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.002354/0.4614, allocations: 1.429 MB / 0.5134 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003388/0.4617, allocations: 181.7 kB / 0.5136 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.4645, allocations: 1.611 MB / 0.5151 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.109e-05/0.4646, allocations: 19.98 kB / 0.5152 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.4646, allocations: 4 kB / 0.5152 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.4646, allocations: 3.984 kB / 0.5152 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009173/0.4738, allocations: 4.874 MB / 0.5199 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.4739, allocations: 4.344 kB / 0.5199 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006394/0.4745, allocations: 159.8 kB / 0.5201 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003307/0.4749, allocations: 116.7 kB / 0.5202 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.5e-05/0.4749, allocations: 24 kB / 0.5202 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.477, allocations: 2.003 MB / 0.5222 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.477, allocations: 0 / 0.5222 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003694/0.4807, allocations: 2.548 MB / 0.5247 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007356/0.4814, allocations: 278.6 kB / 0.5249 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004552/0.4819, allocations: 16 kB / 0.525 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008879/0.4828, allocations: 51.94 kB / 0.525 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.483, allocations: 76.81 kB / 0.5251 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.442e-05/0.483, allocations: 43.97 kB / 0.5251 GB, free: 7.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002822/0.4859, allocations: 1.457 MB / 0.5265 GB, free: 5.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4859, allocations: 0 / 0.5265 GB, free: 5.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003087/0.489, allocations: 0.568 MB / 0.5271 GB, free: 5.078 MB / 398.1 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 (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.004319/0.4933, allocations: 3.167 MB / 0.5302 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004732/0.4981, allocations: 2.625 MB / 0.5328 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.4981, allocations: 0 / 0.5328 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.4993, allocations: 0.8334 MB / 0.5336 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00214/0.5015, allocations: 318.2 kB / 0.5339 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03538/0.5369, allocations: 17.61 MB / 0.5511 GB, free: 10.74 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003104/0.54, allocations: 2.364 MB / 0.5534 GB, free: 8.348 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002694/0.5427, allocations: 1.037 MB / 0.5544 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001758/0.5445, allocations: 1.101 MB / 0.5555 GB, free: 6.207 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5445, allocations: 0 / 0.5555 GB, free: 6.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2757/0.8202, allocations: 44.69 MB / 0.5991 GB, free: 118.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001395/0.8204, allocations: 189.4 kB / 0.5993 GB, free: 118.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.434/3.255, allocations: 0 / 0.5993 GB, free: 118.7 MB / 446.1 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) Environment - environmentSimulation: