Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.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.SimpleControlledDrive_forCalibration,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_forCalibration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_forCalibration",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.000851/0.000851, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001053/0.001053, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.2 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.007503/0.007504, allocations: 1.277 MB / 292.3 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 8 kB / 353.6 MB, free: 2.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3456, allocations: 50.7 MB / 404.3 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.005776/0.3514, allocations: 3.877 MB / 408.2 MB, free: 8.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.3571, allocations: 3.214 MB / 411.4 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007842/0.358, allocations: 20.06 kB / 411.4 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002587/0.3606, allocations: 1.018 MB / 412.4 MB, free: 5.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.3616, allocations: 372.9 kB / 412.8 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.3627, allocations: 329.3 kB / 413.1 MB, free: 5.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.3639, allocations: 0.8046 MB / 413.9 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004323/0.3644, allocations: 201.2 kB / 414.1 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000529/0.3649, allocations: 318.7 kB / 414.4 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007969/0.3657, allocations: 406.5 kB / 414.8 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.46e-05/0.3658, allocations: 22.34 kB / 414.9 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004283/0.3662, allocations: 118.5 kB / 415 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.3666, allocations: 319.5 kB / 415.3 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.3668, allocations: 226.8 kB / 415.5 MB, free: 4.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.3684, allocations: 1.14 MB / 416.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3684, allocations: 1.469 kB / 416.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3684, allocations: 0.5625 kB / 416.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.3685, allocations: 0 / 416.7 MB, free: 3.844 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002617/0.3711, allocations: 1.531 MB / 418.2 MB, free: 2.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3712, allocations: 9.953 kB / 418.2 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.3713, allocations: 83.28 kB / 418.3 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.3715, allocations: 151.5 kB / 418.4 MB, free: 2.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01237/0.3839, allocations: 10.67 MB / 429.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.3839, allocations: 31.25 kB / 429.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.384, allocations: 44.94 kB / 429.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.3852, allocations: 486 kB / 429.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.3853, allocations: 7.906 kB / 429.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.19e-05/0.3853, allocations: 20 kB / 429.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.3853, allocations: 15.95 kB / 429.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007859/0.3861, allocations: 355.7 kB / 430 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006376/0.3925, allocations: 4.506 MB / 434.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009662/0.3935, allocations: 461.4 kB / 435 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004115/0.394, allocations: 205.9 kB / 435.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.975e-05/0.394, allocations: 12.3 kB / 435.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005666/0.3946, allocations: 228.1 kB / 435.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.815e-06/0.3946, allocations: 0 / 435.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003893/0.3985, allocations: 1.797 MB / 437.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/0.3986, allocations: 110.8 kB / 437.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01409/0.4127, allocations: 14.13 MB / 451.5 MB, free: 7.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.4129, allocations: 37.69 kB / 451.5 MB, free: 7.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000598/0.4135, allocations: 0.5769 MB / 452.1 MB, free: 6.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.4137, allocations: 161.6 kB / 452.2 MB, free: 6.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.4137, allocations: 8 kB / 452.2 MB, free: 6.656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4138, allocations: 329.9 kB / 452.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.4142, allocations: 153 kB / 452.7 MB, free: 6.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.4146, allocations: 252.3 kB / 453 MB, free: 5.898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.415, allocations: 184.7 kB / 453.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.415, allocations: 0 / 453.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001499/0.4165, allocations: 0.6053 MB / 453.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.954e-05/0.4166, allocations: 153.3 kB / 453.9 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.4166, allocations: 4 kB / 453.9 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001824/0.4168, allocations: 36.83 kB / 453.9 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008877/0.4177, allocations: 267.7 kB / 454.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.4204, allocations: 3.416 MB / 457.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.4211, allocations: 40.02 kB / 457.7 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.4212, allocations: 16 kB / 457.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.308e-06/0.4212, allocations: 5.719 kB / 457.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008193/0.422, allocations: 435.3 kB / 458.1 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.4221, allocations: 12 kB / 458.1 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.4222, allocations: 32.84 kB / 458.1 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.4227, allocations: 131.8 kB / 458.3 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.4239, allocations: 1.895 MB / 460.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008309/0.4247, allocations: 35.98 kB / 460.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.4248, allocations: 16 kB / 460.2 MB, free: 14.13 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.measurementsTable.nextTimeEvent,measurementsTable.nextTimeEvent,$PRE.measurementsTable.nextTimeEventScaled,measurementsTable.nextTimeEventScaled,speedController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009316/0.4257, allocations: 490.4 kB / 460.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.426, allocations: 138.2 kB / 460.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.427, allocations: 0.5504 MB / 461.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4271, allocations: 4 kB / 461.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.4271, allocations: 4 kB / 461.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4271, allocations: 0 / 461.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.4294, allocations: 1.604 MB / 463 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.4294, allocations: 0 / 463 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.4298, allocations: 103.9 kB / 463.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.4298, allocations: 4 kB / 463.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.4299, allocations: 11.98 kB / 463.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4299, allocations: 0 / 463.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4299, allocations: 0 / 463.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.4312, allocations: 0.8346 MB / 463.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.4317, allocations: 327.3 kB / 464.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.4318, allocations: 4 kB / 464.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.4322, allocations: 39.97 kB / 464.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.4323, allocations: 28.09 kB / 464.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.689e-05/0.4324, allocations: 15.98 kB / 464.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0102/0.4426, allocations: 11.29 MB / 475.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4426, allocations: 0 / 475.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001974/0.4446, allocations: 283.8 kB / 475.9 MB, free: 14.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (damper.phi_rel,damper.w_rel,inertiaLoad.w,speedController.I.y,torqueLoad.phi,sine.phi) * Number of discrete variables: 3 ($whenCondition1,measurementsTable.nextTimeEvent,measurementsTable.nextTimeEventScaled) * Number of discrete states: 2 (measurementsTable.nextTimeEvent,measurementsTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003572/0.4482, allocations: 1.995 MB / 477.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.4504, allocations: 0.822 MB / 478.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4504, allocations: 0.625 kB / 478.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.4508, allocations: 195.8 kB / 478.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.4527, allocations: 201.1 kB / 479.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04479/0.4976, allocations: 34.62 MB / 0.5017 GB, free: 8.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.4986, allocations: 1.197 MB / 0.5029 GB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008692/0.4995, allocations: 166.4 kB / 0.503 GB, free: 7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008971/0.5004, allocations: 495.2 kB / 0.5035 GB, free: 6.512 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5004, allocations: 0 / 0.5035 GB, free: 6.512 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05973/0.5602, allocations: 29.27 MB / 0.5321 GB, free: 9.598 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/0.5605, allocations: 297.3 kB / 0.5324 GB, free: 9.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/2.837, allocations: 0 / 0.5324 GB, free: 9.242 MB / 414.1 MB (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_forCalibration_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_forCalibration.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe 2>&1) Environment - environmentSimulation: