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.001348/0.001348, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001427/0.001427, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.308/1.308, allocations: 222.9 MB / 239.9 MB, free: 4.453 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.008195/0.008195, allocations: 1.292 MB / 291.4 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 75.88 kB / 352 MB, free: 1.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09072/0.09188, allocations: 49.71 MB / 401.7 MB, free: 80 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.1651/0.2571, allocations: 3.232 MB / 405 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.2596, allocations: 2.192 MB / 407.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.2598, allocations: 7.062 kB / 407.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.2618, allocations: 1.037 MB / 408.2 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005261/0.2624, allocations: 309 kB / 408.5 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.2627, allocations: 128.5 kB / 408.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.2632, allocations: 0.5318 MB / 409.2 MB, free: 6.172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.2634, allocations: 135.9 kB / 409.3 MB, free: 6.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.2637, allocations: 239 kB / 409.5 MB, free: 6.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003763/0.2641, allocations: 344.6 kB / 409.9 MB, free: 5.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.756e-05/0.2641, allocations: 31.94 kB / 409.9 MB, free: 5.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.2643, allocations: 80.86 kB / 410 MB, free: 5.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002889/0.2646, allocations: 295.5 kB / 410.3 MB, free: 5.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.2649, allocations: 416.5 kB / 410.7 MB, free: 5.461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009841/0.2659, allocations: 1.07 MB / 411.7 MB, free: 5.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2659, allocations: 0 / 411.7 MB, free: 5.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2659, allocations: 0 / 411.7 MB, free: 5.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.2659, allocations: 0.75 kB / 411.7 MB, free: 5.008 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.001704/0.2676, allocations: 1.332 MB / 413.1 MB, free: 4.066 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.2677, allocations: 13.06 kB / 413.1 MB, free: 4.062 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.299e-05/0.2678, allocations: 65.81 kB / 413.2 MB, free: 4.004 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.2679, allocations: 112.8 kB / 413.3 MB, free: 3.941 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009759/0.2777, allocations: 10.55 MB / 423.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.2778, allocations: 16.81 kB / 423.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.2778, allocations: 29.34 kB / 423.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004167/0.2782, allocations: 232.1 kB / 424.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.2783, allocations: 2.031 kB / 424.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.2783, allocations: 17.31 kB / 424.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.2783, allocations: 10.81 kB / 424.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.2786, allocations: 146.9 kB / 424.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003588/0.2822, allocations: 3.691 MB / 428 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.2826, allocations: 260.8 kB / 428.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.2828, allocations: 99.12 kB / 428.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.2828, allocations: 8.359 kB / 428.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.2829, allocations: 34.5 kB / 428.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.883e-06/0.2829, allocations: 7.938 kB / 428.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.001597/0.2845, allocations: 1.068 MB / 429.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.2845, allocations: 60.02 kB / 429.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01206/0.2966, allocations: 13.89 MB / 443.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.2967, allocations: 29.7 kB / 443.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.297, allocations: 472.6 kB / 443.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.2971, allocations: 86.75 kB / 443.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.879e-05/0.2972, allocations: 57.89 kB / 444 MB, free: 12.74 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2973, allocations: 322 kB / 444.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.904e-05/0.2974, allocations: 52.53 kB / 444.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.2976, allocations: 114.1 kB / 444.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.2978, allocations: 182.1 kB / 444.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2978, allocations: 3.938 kB / 444.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000736/0.2986, allocations: 381.8 kB / 445 MB, free: 11.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2986, allocations: 6.656 kB / 445 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2986, allocations: 0 / 445 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002967/0.2989, allocations: 89.8 kB / 445.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.2991, allocations: 43.92 kB / 445.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001733/0.3008, allocations: 2.271 MB / 447.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.3011, allocations: 28.08 kB / 447.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.3011, allocations: 4 kB / 447.5 MB, free: 9.043 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.0004025/0.3015, allocations: 375.2 kB / 447.8 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.3017, allocations: 102.6 kB / 447.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004147/0.3021, allocations: 299.7 kB / 448.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3021, allocations: 0 / 448.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3021, allocations: 4 kB / 448.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.3021, allocations: 3.938 kB / 448.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.3035, allocations: 1.142 MB / 449.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3035, allocations: 0 / 449.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.3038, allocations: 59.91 kB / 449.4 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3038, allocations: 4 kB / 449.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.3038, allocations: 4 kB / 449.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3038, allocations: 8.031 kB / 449.5 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3038, allocations: 3.984 kB / 449.5 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004711/0.3043, allocations: 451.4 kB / 449.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000386/0.3047, allocations: 271.7 kB / 450.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.3048, allocations: 11.98 kB / 450.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.3052, allocations: 8 kB / 450.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.3053, allocations: 19.98 kB / 450.2 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.3053, allocations: 4 kB / 450.2 MB, free: 6.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.008535/0.3138, allocations: 11.11 MB / 461.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3139, allocations: 0 / 461.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005975/0.3145, allocations: 115.9 kB / 461.4 MB, free: 10.95 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.001455/0.3159, allocations: 1.251 MB / 462.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005741/0.3165, allocations: 330.7 kB / 463 MB, free: 9.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3165, allocations: 0 / 463 MB, free: 9.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.3167, allocations: 83.77 kB / 463.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008339/0.3175, allocations: 141.5 kB / 463.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05913/0.3766, allocations: 44.7 MB / 0.496 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006855/0.3774, allocations: 1.074 MB / 0.4971 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.3777, allocations: 128.6 kB / 0.4972 GB, free: 11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004083/0.3781, allocations: 327.3 kB / 0.4975 GB, free: 10.68 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3781, allocations: 3.938 kB / 0.4975 GB, free: 10.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05416/0.4323, allocations: 25.34 MB / 0.5223 GB, free: 1.621 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002978/0.4326, allocations: 302.2 kB / 0.5225 GB, free: 1.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.606, allocations: 0 / 0.5225 GB, free: 1.238 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)