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: "" <> 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.001645/0.001645, allocations: 108 kB / 15.6 MB, free: 132 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.0019/0.0019, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.008232/0.008232, allocations: 1.298 MB / 291.7 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001199, allocations: 67.89 kB / 352.5 MB, free: 1.516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2202, allocations: 49.71 MB / 402.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.004174/0.2244, allocations: 3.218 MB / 405.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.2271, allocations: 2.234 MB / 407.7 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.2273, allocations: 6.719 kB / 407.7 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.2292, allocations: 1.048 MB / 408.7 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005266/0.2298, allocations: 351.4 kB / 409.1 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000324/0.2301, allocations: 139.1 kB / 409.2 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005501/0.2307, allocations: 0.5322 MB / 409.7 MB, free: 6.121 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.2309, allocations: 133.7 kB / 409.9 MB, free: 6.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.2311, allocations: 232.2 kB / 410.1 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.2315, allocations: 340.5 kB / 410.4 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.65e-05/0.2315, allocations: 33.09 kB / 410.5 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.2317, allocations: 88.36 kB / 410.6 MB, free: 5.828 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.232, allocations: 283.7 kB / 410.8 MB, free: 5.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.2323, allocations: 424 kB / 411.2 MB, free: 5.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009544/0.2332, allocations: 1.062 MB / 412.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2332, allocations: 0 / 412.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2332, allocations: 1.406 kB / 412.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.2333, allocations: 0 / 412.3 MB, free: 4.961 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.001693/0.235, allocations: 1.339 MB / 413.6 MB, free: 4.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.235, allocations: 10.77 kB / 413.7 MB, free: 4.012 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.371e-05/0.2351, allocations: 65.3 kB / 413.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.2353, allocations: 112.1 kB / 413.8 MB, free: 3.891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009449/0.2447, allocations: 10.56 MB / 424.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.2448, allocations: 16.81 kB / 424.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.858e-05/0.2449, allocations: 28.41 kB / 424.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.2454, allocations: 233 kB / 424.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.2454, allocations: 1.375 kB / 424.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.2454, allocations: 13.36 kB / 424.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.2454, allocations: 10.14 kB / 424.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002882/0.2457, allocations: 144.1 kB / 424.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004125/0.2499, allocations: 3.693 MB / 428.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.2503, allocations: 269.8 kB / 428.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.2506, allocations: 92.81 kB / 428.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.2507, allocations: 4.375 kB / 428.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.2507, allocations: 34.5 kB / 428.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.184e-06/0.2507, allocations: 0 / 428.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.001964/0.2527, allocations: 1.071 MB / 430 MB, free: 11.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.2527, allocations: 51.41 kB / 430 MB, free: 11.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01248/0.2652, allocations: 13.89 MB / 443.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.2653, allocations: 29.7 kB / 444 MB, free: 13.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.2657, allocations: 476.6 kB / 444.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.502e-05/0.2658, allocations: 90.73 kB / 444.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.543e-05/0.2659, allocations: 53.89 kB / 444.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.266, allocations: 314 kB / 444.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2661, allocations: 60.48 kB / 444.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.2663, allocations: 114.2 kB / 445 MB, free: 11.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.2665, allocations: 185.5 kB / 445.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2666, allocations: 0 / 445.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008142/0.2674, allocations: 377.8 kB / 445.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2674, allocations: 8 kB / 445.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.2674, allocations: 0 / 445.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.2677, allocations: 77.83 kB / 445.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.2679, allocations: 51.91 kB / 445.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.2697, allocations: 2.277 MB / 448 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.27, allocations: 19.97 kB / 448 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2701, allocations: 8 kB / 448 MB, free: 8.781 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.0004605/0.2705, allocations: 369.7 kB / 448.4 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002387/0.2708, allocations: 106.6 kB / 448.5 MB, free: 8.305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004569/0.2712, allocations: 287.8 kB / 448.8 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2713, allocations: 8 kB / 448.8 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.2713, allocations: 3.938 kB / 448.8 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2713, allocations: 7.922 kB / 448.8 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.2727, allocations: 1.153 MB / 449.9 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.2727, allocations: 4 kB / 449.9 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.273, allocations: 60 kB / 450 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.273, allocations: 0 / 450 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.273, allocations: 8 kB / 450 MB, free: 6.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.273, allocations: 3.938 kB / 450 MB, free: 6.699 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.273, allocations: 0 / 450 MB, free: 6.699 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000543/0.2736, allocations: 452.6 kB / 450.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003318/0.2739, allocations: 271.7 kB / 450.7 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.228e-05/0.274, allocations: 8 kB / 450.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.2742, allocations: 12 kB / 450.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.84e-05/0.2743, allocations: 15.98 kB / 450.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.2743, allocations: 7.984 kB / 450.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.009191/0.2835, allocations: 11.11 MB / 461.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2835, allocations: 0 / 461.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007092/0.2842, allocations: 112 kB / 462 MB, free: 10.68 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.001637/0.2859, allocations: 1.267 MB / 463.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006429/0.2865, allocations: 318.5 kB / 463.6 MB, free: 9.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2866, allocations: 0 / 463.6 MB, free: 9.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.2867, allocations: 79.78 kB / 463.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009314/0.2876, allocations: 147.1 kB / 463.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06257/0.3502, allocations: 44.5 MB / 0.4964 GB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007491/0.351, allocations: 1.086 MB / 0.4974 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003672/0.3514, allocations: 124.6 kB / 0.4976 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004465/0.3518, allocations: 335.2 kB / 0.4979 GB, free: 10.6 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3519, allocations: 0 / 0.4979 GB, free: 10.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07806/0.4299, allocations: 25.44 MB / 0.5227 GB, free: 1.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.93, allocations: 10.98 kB / 0.5227 GB, free: 1.402 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)