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.006825/0.006825, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001426/0.001426, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/package.mo): time 0.00805/0.00805, allocations: 1.294 MB / 291.8 MB, free: 13.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 54.84 kB / 402.9 MB, free: 31.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08243/0.0836, allocations: 49.73 MB / 452.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.005252/0.0889, allocations: 3.224 MB / 455.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00342/0.09236, allocations: 2.227 MB / 458.1 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003429/0.09273, allocations: 11.94 kB / 458.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002197/0.09497, allocations: 1.079 MB / 459.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006842/0.09567, allocations: 354.5 kB / 459.5 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.09604, allocations: 139.4 kB / 459.7 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.09659, allocations: 0.5332 MB / 460.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.09683, allocations: 128 kB / 460.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.09707, allocations: 239.1 kB / 460.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.09741, allocations: 343.1 kB / 460.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.09747, allocations: 32 kB / 460.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.09765, allocations: 87.97 kB / 461 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.09787, allocations: 280.6 kB / 461.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002976/0.09818, allocations: 425.2 kB / 461.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009947/0.09918, allocations: 1.085 MB / 462.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.0992, allocations: 4 kB / 462.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09921, allocations: 0 / 462.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.09923, allocations: 0 / 462.8 MB, free: 3.848 MB / 334.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.001749/0.101, allocations: 1.372 MB / 464.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.101, allocations: 12.03 kB / 464.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.1012, allocations: 63.23 kB / 464.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.1013, allocations: 115.4 kB / 464.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008245/0.1096, allocations: 10.57 MB / 474.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.1096, allocations: 20.56 kB / 475 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.088e-05/0.1097, allocations: 24 kB / 475 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.1101, allocations: 239.6 kB / 475.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.1101, allocations: 4 kB / 475.2 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.1101, allocations: 11.98 kB / 475.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.1102, allocations: 11.94 kB / 475.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.1104, allocations: 142.2 kB / 475.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.1136, allocations: 3.687 MB / 479.1 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.114, allocations: 263.9 kB / 479.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.1142, allocations: 91.08 kB / 479.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.1142, allocations: 4.375 kB / 479.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.1143, allocations: 38.56 kB / 479.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.753e-06/0.1143, allocations: 4 kB / 479.5 MB, free: 2.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001583/0.1159, allocations: 1.089 MB / 480.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.1159, allocations: 55.41 kB / 480.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01138/0.1273, allocations: 13.88 MB / 494.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.1274, allocations: 33.7 kB / 494.5 MB, free: 3.766 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004423/0.1278, allocations: 472.9 kB / 495 MB, free: 3.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.128, allocations: 99.08 kB / 495.1 MB, free: 3.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.702e-05/0.1281, allocations: 57.94 kB / 495.1 MB, free: 3.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.1282, allocations: 314 kB / 495.4 MB, free: 2.828 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.1283, allocations: 60.53 kB / 495.5 MB, free: 2.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.1284, allocations: 115 kB / 495.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.1287, allocations: 181 kB / 495.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.1287, allocations: 0 / 495.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008428/0.1296, allocations: 382.3 kB / 496.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1296, allocations: 11.98 kB / 496.2 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1296, allocations: 0 / 496.2 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/0.1299, allocations: 77.83 kB / 496.2 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.1301, allocations: 43.92 kB / 496.3 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.1319, allocations: 2.277 MB / 498.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.1323, allocations: 19.89 kB / 498.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1323, allocations: 8.156 kB / 498.6 MB, free: 15.46 MB / 382.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.0004235/0.1328, allocations: 373.7 kB / 499 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/0.133, allocations: 111.3 kB / 499.1 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004718/0.1335, allocations: 295.5 kB / 499.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1335, allocations: 0 / 499.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.1335, allocations: 0 / 499.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.1335, allocations: 7.938 kB / 499.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.1351, allocations: 1.131 MB / 0.4888 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.1351, allocations: 7.984 kB / 0.4888 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.1353, allocations: 59.86 kB / 0.4888 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.1354, allocations: 0 / 0.4888 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1354, allocations: 11.98 kB / 0.4888 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1354, allocations: 3.938 kB / 0.4888 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1354, allocations: 0 / 0.4888 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.136, allocations: 461.5 kB / 0.4893 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003994/0.1364, allocations: 280.2 kB / 0.4895 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.1365, allocations: 4 kB / 0.4896 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.1368, allocations: 16 kB / 0.4896 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.1368, allocations: 11.98 kB / 0.4896 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.1368, allocations: 4 kB / 0.4896 GB, free: 12.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.008615/0.1454, allocations: 11.11 MB / 0.5004 GB, free: 1.461 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.1455, allocations: 4 kB / 0.5004 GB, free: 1.457 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007599/0.1462, allocations: 119.9 kB / 0.5006 GB, free: 1.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.001786/0.148, allocations: 1.263 MB / 0.5018 GB, free: 184 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1833/0.3314, allocations: 298 kB / 0.5021 GB, free: 60.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3314, allocations: 0.5 kB / 0.5021 GB, free: 60.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.3316, allocations: 85.72 kB / 0.5022 GB, free: 60.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.3326, allocations: 141.4 kB / 0.5023 GB, free: 60.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05057/0.3832, allocations: 43.89 MB / 0.5451 GB, free: 26.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.3837, allocations: 1.078 MB / 0.5462 GB, free: 25.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002964/0.384, allocations: 124.4 kB / 0.5463 GB, free: 25.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.3843, allocations: 331.3 kB / 0.5466 GB, free: 25.19 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3843, allocations: 4 kB / 0.5466 GB, free: 25.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04893/0.4333, allocations: 25.84 MB / 0.5719 GB, free: 15.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.44, allocations: 23.45 kB / 0.5719 GB, free: 15.68 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)