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.001463/0.001463, 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.00126/0.00126, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.354/1.354, 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.008378/0.008378, allocations: 1.288 MB / 291.7 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 67.89 kB / 352.5 MB, free: 1.527 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.249, allocations: 49.73 MB / 402.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.004381/0.2534, allocations: 3.216 MB / 405.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.2563, allocations: 2.225 MB / 407.7 MB, free: 6.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.2565, allocations: 7.812 kB / 407.7 MB, free: 6.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.2586, allocations: 1.054 MB / 408.7 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005368/0.2591, allocations: 347.9 kB / 409.1 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.2594, allocations: 135.6 kB / 409.2 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004685/0.2599, allocations: 0.5401 MB / 409.7 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.2601, allocations: 129.5 kB / 409.9 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.2604, allocations: 237.1 kB / 410.1 MB, free: 5.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003355/0.2607, allocations: 336.6 kB / 410.4 MB, free: 5.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.2608, allocations: 31.75 kB / 410.5 MB, free: 5.863 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.261, allocations: 87.88 kB / 410.6 MB, free: 5.844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002335/0.2612, allocations: 285.4 kB / 410.8 MB, free: 5.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.2615, allocations: 429 kB / 411.2 MB, free: 5.418 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008913/0.2624, allocations: 1.056 MB / 412.3 MB, free: 4.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2624, allocations: 1.375 kB / 412.3 MB, free: 4.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2624, allocations: 0 / 412.3 MB, free: 4.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.2624, allocations: 0.7031 kB / 412.3 MB, free: 4.977 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.001589/0.264, allocations: 1.335 MB / 413.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.264, allocations: 9.938 kB / 413.7 MB, free: 4.031 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.854e-05/0.2641, allocations: 70.09 kB / 413.7 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.2643, allocations: 115.4 kB / 413.8 MB, free: 3.902 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008167/0.2724, allocations: 10.56 MB / 424.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.2725, allocations: 19.06 kB / 424.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.2725, allocations: 28.41 kB / 424.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.2729, allocations: 228.6 kB / 424.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.273, allocations: 1.125 kB / 424.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.273, allocations: 10.89 kB / 424.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.273, allocations: 13.31 kB / 424.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.2733, allocations: 143.1 kB / 424.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.2766, allocations: 3.697 MB / 428.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.2771, allocations: 264.8 kB / 428.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.2773, allocations: 96.8 kB / 428.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.2773, allocations: 4.375 kB / 428.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.2773, allocations: 38.5 kB / 428.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.2774, allocations: 0 / 428.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.001671/0.279, allocations: 1.067 MB / 430 MB, free: 11.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.2791, allocations: 51.41 kB / 430 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01277/0.2919, allocations: 13.89 MB / 443.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.902e-05/0.292, allocations: 29.7 kB / 444 MB, free: 13.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004309/0.2924, allocations: 472.6 kB / 444.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.2925, allocations: 94.66 kB / 444.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-05/0.2926, allocations: 53.89 kB / 444.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.2928, allocations: 318 kB / 444.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2929, allocations: 60.48 kB / 444.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.293, allocations: 114.1 kB / 445 MB, free: 11.99 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/0.2933, allocations: 185.6 kB / 445.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2933, allocations: 64 / 445.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008756/0.2942, allocations: 377.8 kB / 445.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.2942, allocations: 8 kB / 445.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.2942, allocations: 0 / 445.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003147/0.2946, allocations: 73.67 kB / 445.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.2947, allocations: 56 kB / 445.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.2968, allocations: 2.269 MB / 448 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.2971, allocations: 19.97 kB / 448 MB, free: 8.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.2972, allocations: 12 kB / 448 MB, free: 8.801 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.0004385/0.2976, allocations: 369.9 kB / 448.4 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.2978, allocations: 110.5 kB / 448.5 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004777/0.2983, allocations: 287.7 kB / 448.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2983, allocations: 4 kB / 448.8 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.2983, allocations: 0 / 448.8 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.2983, allocations: 7.922 kB / 448.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.2998, allocations: 1.154 MB / 449.9 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.2999, allocations: 7.938 kB / 449.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.3001, allocations: 55.97 kB / 450 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3001, allocations: 0 / 450 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.3002, allocations: 4 kB / 450 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3002, allocations: 0 / 450 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3002, allocations: 3.969 kB / 450 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.3008, allocations: 463.7 kB / 450.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.3011, allocations: 271.7 kB / 450.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.3012, allocations: 0 / 450.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.3014, allocations: 16 kB / 450.7 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.945e-05/0.3015, allocations: 19.97 kB / 450.8 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.3015, allocations: 4 kB / 450.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00905/0.3106, allocations: 11.12 MB / 461.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3106, allocations: 0 / 461.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007491/0.3113, allocations: 112 kB / 462 MB, free: 10.69 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.001596/0.3129, allocations: 1.263 MB / 463.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006383/0.3136, allocations: 318.8 kB / 463.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3136, allocations: 4 kB / 463.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.3137, allocations: 79.78 kB / 463.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008338/0.3146, allocations: 142.2 kB / 463.8 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05944/0.374, allocations: 44.5 MB / 0.4964 GB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006394/0.3747, allocations: 1.082 MB / 0.4974 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003533/0.3751, allocations: 128.6 kB / 0.4976 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003981/0.3755, allocations: 335.3 kB / 0.4979 GB, free: 10.62 MB / 382.1 MB Notification: Performance of SimCode: time 2.094e-06/0.3755, allocations: 0 / 0.4979 GB, free: 10.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05772/0.4332, allocations: 25.45 MB / 0.5227 GB, free: 1.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.78, allocations: 7.859 kB / 0.5227 GB, free: 1.426 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 & python3 -m fmpy simulate --output-file Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe 2>&1)