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.0008996/0.0008996, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009112/0.0009112, allocations: 177.3 kB / 15.95 MB, free: 216 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.236/1.236, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.00739/0.00739, allocations: 1.273 MB / 292.3 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002866, allocations: 12 kB / 353.5 MB, free: 2.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2191, allocations: 50.69 MB / 404.2 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.004157/0.2233, allocations: 3.791 MB / 408 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003792/0.2272, allocations: 3.292 MB / 411.3 MB, free: 5.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/0.2275, allocations: 16.56 kB / 411.3 MB, free: 5.805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001934/0.2294, allocations: 0.9893 MB / 412.3 MB, free: 5.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000796/0.2303, allocations: 439.6 kB / 412.7 MB, free: 5.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007832/0.231, allocations: 338.8 kB / 413.1 MB, free: 5.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006842/0.2317, allocations: 0.5912 MB / 413.7 MB, free: 4.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000323/0.2321, allocations: 203.8 kB / 413.9 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.2325, allocations: 316.8 kB / 414.2 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006384/0.2331, allocations: 384.1 kB / 414.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.2332, allocations: 23.66 kB / 414.6 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002853/0.2335, allocations: 97.73 kB / 414.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003221/0.2338, allocations: 327.9 kB / 415 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.234, allocations: 223.5 kB / 415.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.2351, allocations: 1.139 MB / 416.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.2352, allocations: 0 / 416.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2352, allocations: 0 / 416.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.2352, allocations: 1.188 kB / 416.3 MB, free: 3.934 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.00211/0.2373, allocations: 1.532 MB / 417.9 MB, free: 2.883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2373, allocations: 8.781 kB / 417.9 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.87e-05/0.2374, allocations: 87.56 kB / 418 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.2376, allocations: 148.5 kB / 418.1 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009752/0.2474, allocations: 10.67 MB / 428.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.2474, allocations: 33.69 kB / 428.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.978e-05/0.2475, allocations: 42.06 kB / 428.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008514/0.2484, allocations: 481 kB / 429.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.2484, allocations: 5.906 kB / 429.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/0.2485, allocations: 20.38 kB / 429.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.2485, allocations: 14.08 kB / 429.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007386/0.2492, allocations: 360.4 kB / 429.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004479/0.2537, allocations: 4.502 MB / 434.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008082/0.2545, allocations: 467.7 kB / 434.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.2546, allocations: 12.31 kB / 434.7 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004606/0.2551, allocations: 220.1 kB / 434.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.244e-06/0.2551, allocations: 3.938 kB / 434.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003166/0.2582, allocations: 1.8 MB / 436.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.2583, allocations: 110.8 kB / 436.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01223/0.2706, allocations: 14.14 MB / 450.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.804e-05/0.2706, allocations: 33.7 kB / 451 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004831/0.2711, allocations: 0.5769 MB / 451.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.2713, allocations: 161.6 kB / 451.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/0.2713, allocations: 8 kB / 451.7 MB, free: 7.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.2714, allocations: 330 kB / 452 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.2718, allocations: 149 kB / 452.2 MB, free: 6.629 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/0.2722, allocations: 256.2 kB / 452.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.2725, allocations: 176.8 kB / 452.6 MB, free: 6.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2725, allocations: 4 kB / 452.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001171/0.2737, allocations: 0.6006 MB / 453.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003327/0.2741, allocations: 0.9019 MB / 454.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2741, allocations: 0 / 454.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.2743, allocations: 44.81 kB / 454.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009726/0.2752, allocations: 267.7 kB / 454.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/0.2779, allocations: 3.435 MB / 457.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.2784, allocations: 44.2 kB / 457.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.2784, allocations: 16 kB / 457.9 MB, free: 492 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.642e-06/0.2785, allocations: 4 kB / 457.9 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007878/0.2793, allocations: 438.9 kB / 458.4 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.2793, allocations: 4 kB / 458.4 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001183/0.2794, allocations: 36.83 kB / 458.4 MB, free: 0 / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000513/0.2799, allocations: 128 kB / 458.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.281, allocations: 1.891 MB / 460.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.2814, allocations: 31.98 kB / 460.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.2814, allocations: 19.95 kB / 460.5 MB, free: 13.77 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.0006331/0.2821, allocations: 494.7 kB / 460.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.2822, allocations: 142.2 kB / 461.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009631/0.2832, allocations: 0.5502 MB / 461.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2832, allocations: 8 kB / 461.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.2832, allocations: 0 / 461.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.2832, allocations: 3.984 kB / 461.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.2853, allocations: 1.588 MB / 463.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2854, allocations: 0 / 463.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.2858, allocations: 107.9 kB / 463.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2858, allocations: 0 / 463.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.2859, allocations: 8 kB / 463.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.2859, allocations: 11.94 kB / 463.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2859, allocations: 0 / 463.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.2872, allocations: 0.8393 MB / 464.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004405/0.2876, allocations: 327.3 kB / 464.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.2877, allocations: 11.95 kB / 464.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/0.2881, allocations: 31.98 kB / 464.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.2882, allocations: 35.95 kB / 464.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.2883, allocations: 12 kB / 464.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00926/0.2975, allocations: 11.28 MB / 475.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2975, allocations: 0 / 475.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001009/0.2985, allocations: 284 kB / 476.2 MB, free: 13.92 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.002989/0.3015, allocations: 2.077 MB / 478.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002001/0.3036, allocations: 0.8297 MB / 479.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3036, allocations: 0 / 479.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.3039, allocations: 199.7 kB / 479.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008657/0.3048, allocations: 193.3 kB / 479.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03351/0.3383, allocations: 35.7 MB / 0.5031 GB, free: 6.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007868/0.3392, allocations: 1.228 MB / 0.5043 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005843/0.3398, allocations: 158.4 kB / 0.5044 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005745/0.3403, allocations: 499.2 kB / 0.5049 GB, free: 4.934 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3403, allocations: 0 / 0.5049 GB, free: 4.934 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04827/0.3886, allocations: 29.22 MB / 0.5334 GB, free: 8.055 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002477/0.3889, allocations: 303 kB / 0.5337 GB, free: 7.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/2.44, allocations: 0 / 0.5337 GB, free: 7.688 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: