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: translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU") translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001456, allocations: 104.6 kB / 16.41 MB, free: 6.008 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.001491/0.001491, allocations: 185.5 kB / 17.34 MB, free: 5.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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.008236/0.008236, allocations: 1.3 MB / 292.5 MB, free: 13.52 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.89 kB / 404.1 MB, free: 31.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 49.72 MB / 453.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.004641/0.1072, allocations: 3.232 MB / 457 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00329/0.1105, allocations: 2.215 MB / 459.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/0.1108, allocations: 11.94 kB / 459.3 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.1129, allocations: 1.059 MB / 460.3 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00055/0.1134, allocations: 346.3 kB / 460.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.1138, allocations: 143.6 kB / 460.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005436/0.1144, allocations: 0.5215 MB / 461.3 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.1146, allocations: 135.9 kB / 461.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.1148, allocations: 243.1 kB / 461.7 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.1152, allocations: 343.1 kB / 462 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.357e-05/0.1153, allocations: 35.94 kB / 462.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.1155, allocations: 83.97 kB / 462.2 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002188/0.1157, allocations: 272.7 kB / 462.4 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.116, allocations: 353.6 kB / 462.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008435/0.1168, allocations: 0.8914 MB / 463.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1168, allocations: 0 / 463.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1168, allocations: 0 / 463.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.1169, allocations: 4 kB / 463.7 MB, free: 3.688 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.001507/0.1184, allocations: 1.162 MB / 464.8 MB, free: 2.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1184, allocations: 12.03 kB / 464.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.1186, allocations: 99.09 kB / 464.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1196, allocations: 0.9094 MB / 465.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1197, allocations: 24.5 kB / 465.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.1197, allocations: 27.91 kB / 465.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.1201, allocations: 223.7 kB / 466.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.1201, allocations: 4 kB / 466.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.1201, allocations: 8 kB / 466.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1202, allocations: 7.938 kB / 466.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002568/0.1204, allocations: 146.2 kB / 466.3 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.1221, allocations: 1.325 MB / 467.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004016/0.1225, allocations: 263.8 kB / 467.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.1227, allocations: 88.83 kB / 467.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.1227, allocations: 11.98 kB / 468 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1228, allocations: 38.92 kB / 468 MB, free: 15.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.1228, allocations: 0 / 468 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001599/0.1244, allocations: 1.035 MB / 469 MB, free: 13.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.1244, allocations: 59.41 kB / 469.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/0.1262, allocations: 1.74 MB / 470.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.1263, allocations: 29.7 kB / 470.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.1265, allocations: 372.9 kB / 471.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.762e-05/0.1266, allocations: 102.7 kB / 471.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002645/0.1269, allocations: 250.2 kB / 471.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.127, allocations: 353.9 kB / 471.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005084/0.1276, allocations: 461.8 kB / 472.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005878/0.1281, allocations: 0.5429 MB / 472.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007461/0.1289, allocations: 0.6474 MB / 473.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1289, allocations: 64 / 473.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001656/0.1306, allocations: 1.291 MB / 474.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1306, allocations: 4 kB / 474.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.1306, allocations: 4.156 kB / 474.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003824/0.131, allocations: 81.61 kB / 474.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005875/0.1316, allocations: 183.7 kB / 475.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.1335, allocations: 2.285 MB / 477.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.1339, allocations: 16 kB / 477.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.134, allocations: 32 kB / 477.4 MB, free: 5.297 MB / 350.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 (115): * Single equations (assignments): 113 * 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.0004807/0.1344, allocations: 381.5 kB / 477.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.1346, allocations: 90.78 kB / 477.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004384/0.135, allocations: 258.2 kB / 478.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1351, allocations: 4.094 kB / 478.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.1351, allocations: 4 kB / 478.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.1351, allocations: 0 / 478.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.1364, allocations: 0.9896 MB / 479.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1364, allocations: 0 / 479.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.1366, allocations: 63.91 kB / 479.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1366, allocations: 0 / 479.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.1367, allocations: 7.938 kB / 479.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1367, allocations: 8.031 kB / 479.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1367, allocations: 0 / 479.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005096/0.1372, allocations: 440.3 kB / 479.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002637/0.1375, allocations: 223.9 kB / 479.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.675e-05/0.1376, allocations: 11.94 kB / 479.9 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.1377, allocations: 4 kB / 479.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.1378, allocations: 15.98 kB / 479.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.1378, allocations: 4 kB / 479.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001293/0.1391, allocations: 1.142 MB / 481.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1391, allocations: 0 / 481.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005575/0.1397, allocations: 164 kB / 481.2 MB, free: 1.379 MB / 350.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.000864/0.1405, allocations: 374.4 kB / 481.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.1417, allocations: 0.8086 MB / 482.4 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1417, allocations: 0 / 482.4 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1419, allocations: 84.22 kB / 482.5 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007844/0.1427, allocations: 127 kB / 482.6 MB, free: 124 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.1453, allocations: 1.815 MB / 484.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007249/0.146, allocations: 1.02 MB / 485.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.1462, allocations: 39.42 kB / 485.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1462, allocations: 0 / 485.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of Templates: time 0.01886/0.1651, allocations: 12.7 MB / 498.2 MB, free: 492 kB / 366.1 MB make -j1 -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.makefile (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 & ./Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU -abortSlowSimulation -alarm=480 -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe 2>&1)