Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.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/Credibility 0.2.0-alpha.1/package.mo", uses=false) Using package Credibility with version 0.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/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(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU") translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001219, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/package.mo): time 0.007755/0.007756, allocations: 1.29 MB / 291.7 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 59.91 kB / 352.4 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2281, allocations: 49.72 MB / 402.1 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.003646/0.2318, allocations: 3.223 MB / 405.3 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.234, allocations: 2.228 MB / 407.6 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.2341, allocations: 7.781 kB / 407.6 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.2358, allocations: 1.052 MB / 408.6 MB, free: 6.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004262/0.2363, allocations: 354.3 kB / 409 MB, free: 6.418 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.2365, allocations: 139.4 kB / 409.1 MB, free: 6.344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000403/0.2369, allocations: 0.5371 MB / 409.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.2371, allocations: 125.4 kB / 409.8 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.2373, allocations: 236.8 kB / 410 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.2376, allocations: 337 kB / 410.3 MB, free: 5.824 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.083e-05/0.2377, allocations: 35 kB / 410.4 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.2378, allocations: 84.8 kB / 410.4 MB, free: 5.805 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.238, allocations: 273.9 kB / 410.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.2382, allocations: 362 kB / 411.1 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006672/0.2389, allocations: 0.8718 MB / 411.9 MB, free: 5.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2389, allocations: 1.375 kB / 411.9 MB, free: 5.062 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2389, allocations: 0.7969 kB / 411.9 MB, free: 5.062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2389, allocations: 0 / 411.9 MB, free: 5.062 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001166/0.2401, allocations: 1.169 MB / 413.1 MB, free: 4.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.2402, allocations: 10.33 kB / 413.1 MB, free: 4.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.2403, allocations: 99.09 kB / 413.2 MB, free: 4.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007969/0.2411, allocations: 0.9069 MB / 414.1 MB, free: 3.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2411, allocations: 26.08 kB / 414.1 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.2411, allocations: 27.19 kB / 414.2 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.2414, allocations: 225.5 kB / 414.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.2415, allocations: 1.859 kB / 414.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.2415, allocations: 14.25 kB / 414.4 MB, free: 3.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2415, allocations: 9.812 kB / 414.4 MB, free: 3.426 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.2417, allocations: 140.6 kB / 414.6 MB, free: 3.383 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.2432, allocations: 1.335 MB / 415.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.2435, allocations: 263.2 kB / 416.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.2437, allocations: 94.69 kB / 416.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.2437, allocations: 2.344 kB / 416.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.2438, allocations: 37.72 kB / 416.3 MB, free: 2.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.2438, allocations: 0 / 416.3 MB, free: 2.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001288/0.2451, allocations: 1.045 MB / 417.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.95e-05/0.2451, allocations: 55.78 kB / 417.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/0.2468, allocations: 1.748 MB / 419.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.2468, allocations: 27.42 kB / 419.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.247, allocations: 366.4 kB / 419.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.2471, allocations: 106.4 kB / 419.6 MB, free: 432 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/0.2473, allocations: 246.5 kB / 419.9 MB, free: 316 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.422e-05/0.2474, allocations: 350.8 kB / 420.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005195/0.248, allocations: 459.2 kB / 420.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/0.2486, allocations: 0.547 MB / 421.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008149/0.2494, allocations: 0.6505 MB / 421.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2494, allocations: 1.219 kB / 421.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001948/0.2514, allocations: 1.282 MB / 423.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2514, allocations: 5.469 kB / 423.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/0.2514, allocations: 5.062 kB / 423.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003372/0.2518, allocations: 87.52 kB / 423.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005218/0.2523, allocations: 179.5 kB / 423.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.2541, allocations: 2.283 MB / 425.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.2545, allocations: 27.72 kB / 425.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.522e-05/0.2546, allocations: 29.91 kB / 425.7 MB, free: 12.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005737/0.2552, allocations: 381 kB / 426.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002108/0.2554, allocations: 91.16 kB / 426.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005573/0.256, allocations: 252.3 kB / 426.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.256, allocations: 3.219 kB / 426.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.256, allocations: 0 / 426.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.256, allocations: 6.297 kB / 426.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.2575, allocations: 0.9904 MB / 427.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2576, allocations: 1.25 kB / 427.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.2578, allocations: 52.92 kB / 427.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.655e-06/0.2578, allocations: 9.359 kB / 427.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.2578, allocations: 6.156 kB / 427.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.2578, allocations: 6.344 kB / 427.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2579, allocations: 0 / 427.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/0.2584, allocations: 445.4 kB / 428 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.2587, allocations: 220.6 kB / 428.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.912e-05/0.2588, allocations: 5.406 kB / 428.2 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.259, allocations: 6.406 kB / 428.2 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.415e-05/0.259, allocations: 18.78 kB / 428.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.259, allocations: 9.844 kB / 428.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.2603, allocations: 1.131 MB / 429.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2604, allocations: 0 / 429.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006184/0.261, allocations: 168.8 kB / 429.5 MB, free: 10.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (damper.phi_rel,damper.w_rel,inertiaLoad.w,loadTorque.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 (25): * Single equations (assignments): 25 * Array equations: 0 * 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.0007551/0.2617, allocations: 375.5 kB / 429.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.263, allocations: 0.8234 MB / 430.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.263, allocations: 0 / 430.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.2631, allocations: 86.19 kB / 430.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008113/0.2639, allocations: 120.7 kB / 430.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.2665, allocations: 1.928 MB / 432.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006646/0.2672, allocations: 1.07 MB / 433.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002066/0.2674, allocations: 88.34 kB / 434 MB, free: 6.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.117e-05/0.2675, allocations: 39.42 kB / 434 MB, free: 6.648 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2675, allocations: 0 / 434 MB, free: 6.648 MB / 302.1 MB Notification: Performance of Templates: time 0.01266/0.2801, allocations: 6.495 MB / 440.5 MB, free: 196 kB / 302.1 MB make -j1 -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.makefile (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.sim & ./Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU -abortSlowSimulation -alarm=480 -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe 2>&1)