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.0009248/0.0009248, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.006947/0.006947, allocations: 174.7 kB / 16.27 MB, free: 6.613 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.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.007802/0.007802, allocations: 1.27 MB / 292.7 MB, free: 0.9023 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002663/0.0002663, allocations: 11.94 kB / 354.2 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2042, allocations: 50.7 MB / 404.9 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.004017/0.2082, allocations: 4.088 MB / 409 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003756/0.212, allocations: 3.397 MB / 412.4 MB, free: 5.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.2123, allocations: 20.66 kB / 412.4 MB, free: 5.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.2142, allocations: 1.092 MB / 413.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006176/0.2148, allocations: 392 kB / 413.9 MB, free: 4.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006733/0.2155, allocations: 360.6 kB / 414.3 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007052/0.2162, allocations: 0.866 MB / 415.1 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.2166, allocations: 252.9 kB / 415.4 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.2169, allocations: 329.1 kB / 415.7 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004802/0.2174, allocations: 449.1 kB / 416.1 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.341e-05/0.2175, allocations: 22.91 kB / 416.2 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.2177, allocations: 130.8 kB / 416.3 MB, free: 3.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002539/0.218, allocations: 321.1 kB / 416.6 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.2183, allocations: 0.5356 MB / 417.1 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.2195, allocations: 1.398 MB / 418.5 MB, free: 2.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2195, allocations: 0 / 418.5 MB, free: 2.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2195, allocations: 0 / 418.5 MB, free: 2.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.2196, allocations: 4 kB / 418.6 MB, free: 2.836 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.001956/0.2215, allocations: 1.507 MB / 420.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.2216, allocations: 9.625 kB / 420.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.259e-05/0.2217, allocations: 86.94 kB / 420.2 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.2218, allocations: 152.4 kB / 420.3 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008827/0.2307, allocations: 10.74 MB / 431 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.2307, allocations: 33 kB / 431.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.455e-05/0.2308, allocations: 47.98 kB / 431.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008475/0.2316, allocations: 481.5 kB / 431.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.2317, allocations: 7.906 kB / 431.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.194e-05/0.2317, allocations: 20 kB / 431.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2317, allocations: 11.94 kB / 431.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.2325, allocations: 363.7 kB / 432 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/0.2367, allocations: 4.51 MB / 436.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008385/0.2376, allocations: 464.8 kB / 436.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004201/0.238, allocations: 205.4 kB / 437.1 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.563e-05/0.2381, allocations: 8.328 kB / 437.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/0.2386, allocations: 232 kB / 437.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.034e-06/0.2386, allocations: 0 / 437.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003198/0.2418, allocations: 1.804 MB / 439.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.2419, allocations: 114.7 kB / 439.3 MB, free: 4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01216/0.254, allocations: 14.13 MB / 453.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.2541, allocations: 37.7 kB / 453.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004751/0.2546, allocations: 0.5769 MB / 454 MB, free: 5.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.2547, allocations: 157.7 kB / 454.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.056e-05/0.2548, allocations: 45.69 kB / 454.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.364e-05/0.2549, allocations: 334 kB / 454.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.2552, allocations: 149 kB / 454.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.2556, allocations: 260.2 kB / 455 MB, free: 4.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007607/0.2564, allocations: 419.2 kB / 455.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2564, allocations: 0 / 455.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001165/0.2576, allocations: 0.6046 MB / 456 MB, free: 3.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.492e-05/0.2577, allocations: 165.2 kB / 456.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.2577, allocations: 4 kB / 456.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.2579, allocations: 32.84 kB / 456.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009935/0.2589, allocations: 267.7 kB / 456.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/0.2616, allocations: 3.423 MB / 459.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.262, allocations: 39.97 kB / 459.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.262, allocations: 24.16 kB / 459.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.811e-06/0.2621, allocations: 4 kB / 459.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008331/0.2629, allocations: 431 kB / 460.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2629, allocations: 4 kB / 460.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001129/0.263, allocations: 36.78 kB / 460.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.2636, allocations: 131.8 kB / 460.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.2646, allocations: 1.887 MB / 462.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.265, allocations: 31.98 kB / 462.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.265, allocations: 19.94 kB / 462.5 MB, free: 12.23 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 ($PRE.measurementsTable.nextTimeEvent,$whenCondition1,measurementsTable.nextTimeEventScaled,$PRE.measurementsTable.nextTimeEventScaled,measurementsTable.nextTimeEvent,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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004922/0.2655, allocations: 488.9 kB / 462.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.2657, allocations: 150.3 kB / 463.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.2667, allocations: 0.5499 MB / 463.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2667, allocations: 4 kB / 463.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.2667, allocations: 0 / 463.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.2668, allocations: 7.922 kB / 463.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.2689, allocations: 1.604 MB / 465.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2689, allocations: 0 / 465.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.2693, allocations: 111.8 kB / 465.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2693, allocations: 0 / 465.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.2694, allocations: 8 kB / 465.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.2694, allocations: 7.938 kB / 465.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2694, allocations: 0 / 465.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.2707, allocations: 0.8311 MB / 466.2 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003857/0.2711, allocations: 327.2 kB / 466.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.2712, allocations: 12 kB / 466.5 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004/0.2717, allocations: 31.98 kB / 466.6 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.168e-05/0.2717, allocations: 31.95 kB / 466.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.2718, allocations: 16 kB / 466.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.008867/0.2806, allocations: 11.28 MB / 477.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2807, allocations: 0 / 477.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009645/0.2816, allocations: 280 kB / 478.2 MB, free: 12.38 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 (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.003116/0.2848, allocations: 1.999 MB / 480.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.2869, allocations: 0.8181 MB / 481 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.2869, allocations: 4 kB / 481 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003872/0.2873, allocations: 199.9 kB / 481.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.2885, allocations: 207.1 kB / 481.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06608/0.3546, allocations: 47.41 MB / 0.5164 GB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007567/0.3553, allocations: 1.197 MB / 0.5176 GB, free: 8.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005395/0.3559, allocations: 174.3 kB / 0.5177 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006063/0.3565, allocations: 495.2 kB / 0.5182 GB, free: 7.711 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3565, allocations: 0 / 0.5182 GB, free: 7.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04595/0.4025, allocations: 29.8 MB / 0.5473 GB, free: 10.25 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.4027, allocations: 322.9 kB / 0.5476 GB, free: 9.867 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.576, allocations: 2.953 kB / 0.5476 GB, free: 9.867 MB / 430.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/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)