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.01119/0.01119, allocations: 102 kB / 15.73 MB, free: 6.484 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.001782/0.001782, allocations: 190.1 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.409/2.409, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.01123/0.01123, allocations: 1.286 MB / 291.8 MB, free: 0.8984 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 63.89 kB / 402.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4715/0.4735, allocations: 49.71 MB / 452.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.008351/0.482, allocations: 3.23 MB / 455.9 MB, free: 19.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005298/0.4873, allocations: 2.226 MB / 458.1 MB, free: 18.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006664/0.4881, allocations: 8.875 kB / 458.1 MB, free: 18.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004321/0.4925, allocations: 1.053 MB / 459.2 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001389/0.4939, allocations: 348 kB / 459.5 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007217/0.4946, allocations: 137.3 kB / 459.6 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001218/0.4959, allocations: 0.5323 MB / 460.2 MB, free: 17.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004391/0.4963, allocations: 138.5 kB / 460.3 MB, free: 17.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005235/0.4969, allocations: 239.8 kB / 460.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006169/0.4975, allocations: 334.7 kB / 460.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.4976, allocations: 31.62 kB / 460.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003483/0.498, allocations: 87.56 kB / 461 MB, free: 17.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003532/0.4984, allocations: 283 kB / 461.2 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006603/0.499, allocations: 425.1 kB / 461.7 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002085/0.5011, allocations: 1.078 MB / 462.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.5012, allocations: 0 / 462.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.5012, allocations: 0 / 462.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.465e-05/0.5013, allocations: 3.156 kB / 462.7 MB, free: 16.3 MB / 350.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.004582/0.5059, allocations: 1.333 MB / 464.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.847e-05/0.5059, allocations: 8.844 kB / 464.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/0.5061, allocations: 62.81 kB / 464.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.5066, allocations: 112.8 kB / 464.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02119/0.5278, allocations: 10.56 MB / 474.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.932e-05/0.5279, allocations: 27.44 kB / 474.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.5281, allocations: 27.06 kB / 474.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.5291, allocations: 231.2 kB / 475.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.164e-05/0.5292, allocations: 3.188 kB / 475.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.174e-05/0.5293, allocations: 9.125 kB / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-05/0.5293, allocations: 11.17 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007395/0.5301, allocations: 146.5 kB / 475.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.5405, allocations: 3.69 MB / 478.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008194/0.5413, allocations: 259.3 kB / 479.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.5418, allocations: 90.92 kB / 479.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.583e-05/0.5419, allocations: 6.578 kB / 479.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.5419, allocations: 43.84 kB / 479.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 5.099e-06/0.5419, allocations: 0 / 479.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003615/0.5456, allocations: 1.062 MB / 480.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.5457, allocations: 58.09 kB / 480.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0216/0.5673, allocations: 13.9 MB / 494.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.395e-05/0.5674, allocations: 29.7 kB / 494.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006412/0.5681, allocations: 466.2 kB / 494.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.5683, allocations: 94.8 kB / 494.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.5684, allocations: 58.17 kB / 495 MB, free: 12.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5686, allocations: 317.9 kB / 495.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.5687, allocations: 59.08 kB / 495.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.5689, allocations: 108.2 kB / 495.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.5692, allocations: 181.3 kB / 495.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.5693, allocations: 1.266 kB / 495.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001167/0.5704, allocations: 380.8 kB / 496 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.5705, allocations: 6.188 kB / 496 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.5705, allocations: 8.156 kB / 496 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004103/0.5709, allocations: 70.98 kB / 496.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003107/0.5712, allocations: 45.94 kB / 496.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002329/0.5736, allocations: 2.278 MB / 498.4 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005692/0.5741, allocations: 19.94 kB / 498.4 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.5742, allocations: 12.84 kB / 498.5 MB, free: 8.988 MB / 366.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.0006544/0.5748, allocations: 367.6 kB / 498.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000391/0.5752, allocations: 99.44 kB / 498.9 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007501/0.576, allocations: 296.4 kB / 499.2 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.576, allocations: 8.094 kB / 499.2 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.576, allocations: 0 / 499.2 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.5761, allocations: 5.391 kB / 499.2 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.5792, allocations: 1.146 MB / 0.4886 GB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.5792, allocations: 0 / 0.4886 GB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.5797, allocations: 59.56 kB / 0.4887 GB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.758e-06/0.5797, allocations: 4 kB / 0.4887 GB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.5797, allocations: 4.703 kB / 0.4887 GB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.193e-05/0.5798, allocations: 12.16 kB / 0.4887 GB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.5798, allocations: 4.703 kB / 0.4887 GB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.5808, allocations: 448.1 kB / 0.4891 GB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008768/0.5817, allocations: 276 kB / 0.4894 GB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/0.582, allocations: 8.609 kB / 0.4894 GB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000546/0.5826, allocations: 16.69 kB / 0.4894 GB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.5827, allocations: 16.73 kB / 0.4894 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.5827, allocations: 12.69 kB / 0.4895 GB, free: 6.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.01855/0.6013, allocations: 11.12 MB / 0.5003 GB, free: 11.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.6014, allocations: 0 / 0.5003 GB, free: 11.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001748/0.6031, allocations: 112 kB / 0.5004 GB, free: 11.34 MB / 382.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.003346/0.6065, allocations: 1.249 MB / 0.5016 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.6077, allocations: 311 kB / 0.5019 GB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.6077, allocations: 0 / 0.5019 GB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.6079, allocations: 89.06 kB / 0.502 GB, free: 9.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.6101, allocations: 140.7 kB / 0.5022 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1218/0.7319, allocations: 43.85 MB / 0.545 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/0.7335, allocations: 1.078 MB / 0.546 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007425/0.7343, allocations: 124.6 kB / 0.5461 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000932/0.7353, allocations: 331.3 kB / 0.5465 GB, free: 12.08 MB / 430.1 MB Notification: Performance of SimCode: time 1.924e-06/0.7353, allocations: 0 / 0.5465 GB, free: 12.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1169/0.8522, allocations: 26.1 MB / 0.572 GB, free: 2.223 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.87/23.72, allocations: 8.047 kB / 0.572 GB, free: 2.215 MB / 446.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)