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.1.0-main/package.mo", uses=false) Using package Credibility with version 0.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/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(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU",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.0007445/0.0007445, allocations: 90.67 kB / 15.36 MB, free: 0.7344 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.009493/0.009493, allocations: 169.2 kB / 16.26 MB, free: 6.68 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.286/1.286, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.007885/0.007885, allocations: 1.274 MB / 292.7 MB, free: 0.8789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002695, allocations: 8 kB / 354.2 MB, free: 1.699 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.201, allocations: 50.69 MB / 404.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.003167/0.2042, allocations: 2.853 MB / 407.8 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.2067, allocations: 2.156 MB / 409.9 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.2069, allocations: 10.81 kB / 410 MB, free: 7.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001742/0.2086, allocations: 1.001 MB / 411 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.2091, allocations: 316.2 kB / 411.3 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.2093, allocations: 125.5 kB / 411.4 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004516/0.2098, allocations: 0.5074 MB / 411.9 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.21, allocations: 116 kB / 412 MB, free: 6.453 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.2102, allocations: 203.5 kB / 412.2 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003143/0.2105, allocations: 315.1 kB / 412.5 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.2106, allocations: 14.38 kB / 412.5 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.2107, allocations: 61.48 kB / 412.6 MB, free: 6.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.2109, allocations: 271.3 kB / 412.9 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.2112, allocations: 414.3 kB / 413.3 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008058/0.212, allocations: 1.02 MB / 414.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.212, allocations: 4 kB / 414.3 MB, free: 5.52 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.212, allocations: 1.438 kB / 414.3 MB, free: 5.52 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.212, allocations: 0 / 414.3 MB, free: 5.52 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.001375/0.2134, allocations: 1.181 MB / 415.5 MB, free: 4.652 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2134, allocations: 17.56 kB / 415.5 MB, free: 4.645 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.265e-05/0.2135, allocations: 61.58 kB / 415.5 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.2137, allocations: 114 kB / 415.7 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008081/0.2217, allocations: 10.56 MB / 426.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.2218, allocations: 13.38 kB / 426.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.2218, allocations: 24.94 kB / 426.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.2222, allocations: 232.3 kB / 426.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.2222, allocations: 5.375 kB / 426.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.2223, allocations: 9.891 kB / 426.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.2223, allocations: 10.81 kB / 426.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002507/0.2225, allocations: 142.7 kB / 426.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.2258, allocations: 3.709 MB / 430.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.2262, allocations: 261.9 kB / 430.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.2264, allocations: 96.81 kB / 430.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.2265, allocations: 4.375 kB / 430.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.2265, allocations: 38.5 kB / 430.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.703e-06/0.2265, allocations: 0 / 430.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.001529/0.228, allocations: 1.069 MB / 431.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.2281, allocations: 55.41 kB / 431.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01137/0.2395, allocations: 13.88 MB / 445.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.2395, allocations: 29.7 kB / 445.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003691/0.2399, allocations: 472.6 kB / 446.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.2399, allocations: 94.64 kB / 446.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.24, allocations: 33.7 kB / 446.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.408e-05/0.2401, allocations: 318 kB / 446.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.2402, allocations: 52.55 kB / 446.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.2403, allocations: 114.2 kB / 446.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.2406, allocations: 186 kB / 447 MB, free: 12.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2406, allocations: 0 / 447 MB, free: 12.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006382/0.2412, allocations: 370 kB / 447.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2412, allocations: 11.94 kB / 447.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2413, allocations: 0 / 447.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002922/0.2416, allocations: 73.67 kB / 447.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.2417, allocations: 47.97 kB / 447.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.2432, allocations: 2.11 MB / 449.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.2435, allocations: 12 kB / 449.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.2435, allocations: 8 kB / 449.6 MB, free: 9.52 MB / 318.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 (28): * Single equations (assignments): 26 * 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.0003655/0.2439, allocations: 381.5 kB / 450 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.244, allocations: 102.7 kB / 450.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004171/0.2445, allocations: 303.7 kB / 450.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2445, allocations: 0 / 450.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.2445, allocations: 0 / 450.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2445, allocations: 7.938 kB / 450.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.2458, allocations: 1.145 MB / 451.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2458, allocations: 8.016 kB / 451.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.2461, allocations: 55.92 kB / 451.6 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2461, allocations: 0 / 451.6 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.2461, allocations: 15.92 kB / 451.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2461, allocations: 192 / 451.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2461, allocations: 3.984 kB / 451.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.2466, allocations: 456.3 kB / 452.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002957/0.2469, allocations: 275.6 kB / 452.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.247, allocations: 7.938 kB / 452.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.2473, allocations: 16 kB / 452.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.595e-05/0.2473, allocations: 11.98 kB / 452.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.2473, allocations: 8 kB / 452.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.008526/0.2558, allocations: 11.12 MB / 463.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2559, allocations: 0 / 463.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004947/0.2564, allocations: 104 kB / 463.6 MB, free: 11.4 MB / 334.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.001431/0.2578, allocations: 1.259 MB / 464.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005018/0.2583, allocations: 306.5 kB / 465.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2583, allocations: 0 / 465.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.2584, allocations: 83.77 kB / 465.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008723/0.2593, allocations: 131.7 kB / 465.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0599/0.3192, allocations: 44.77 MB / 0.4982 GB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000644/0.3199, allocations: 1.07 MB / 0.4992 GB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002867/0.3202, allocations: 128.7 kB / 0.4994 GB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/0.3206, allocations: 335.3 kB / 0.4997 GB, free: 11.09 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3206, allocations: 0 / 0.4997 GB, free: 11.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03458/0.3552, allocations: 22.43 MB / 0.5216 GB, free: 4.949 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.3555, allocations: 292.4 kB / 0.5219 GB, free: 4.574 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.357, allocations: 2.031 kB / 0.5219 GB, free: 4.574 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe 2>&1)