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: "" <> 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.001517/0.001517, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001806/0.001807, allocations: 191.6 kB / 16.13 MB, free: 6.703 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.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.007962/0.007962, allocations: 1.285 MB / 291.3 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 68.03 kB / 351.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07613/0.07744, allocations: 49.73 MB / 401.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.00408/0.08157, allocations: 3.241 MB / 404.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.08417, allocations: 2.192 MB / 407 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.08432, allocations: 11.94 kB / 407 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.086, allocations: 0.9971 MB / 408 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004021/0.08641, allocations: 318.9 kB / 408.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.08666, allocations: 115.8 kB / 408.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004421/0.08711, allocations: 0.502 MB / 408.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.0873, allocations: 120.6 kB / 409 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.08749, allocations: 207.1 kB / 409.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.0878, allocations: 331.1 kB / 409.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.08785, allocations: 24 kB / 409.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.08799, allocations: 59.97 kB / 409.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.08821, allocations: 276.6 kB / 409.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002802/0.0885, allocations: 397.3 kB / 410.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007379/0.08924, allocations: 1.047 MB / 411.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.08925, allocations: 0 / 411.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.08926, allocations: 0 / 411.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.08928, allocations: 4 kB / 411.4 MB, free: 11.35 MB / 350.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.001578/0.09086, allocations: 1.334 MB / 412.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.0909, allocations: 12.03 kB / 412.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.09099, allocations: 67.12 kB / 412.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.09113, allocations: 110.7 kB / 412.9 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1438/0.2349, allocations: 10.55 MB / 423.4 MB, free: 53.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.235, allocations: 16.53 kB / 423.4 MB, free: 53.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.235, allocations: 26.23 kB / 423.5 MB, free: 53.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.2355, allocations: 236.5 kB / 423.7 MB, free: 53.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.2356, allocations: 2.062 kB / 423.7 MB, free: 53.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.2356, allocations: 8.812 kB / 423.7 MB, free: 53.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.2356, allocations: 10.06 kB / 423.7 MB, free: 53.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003351/0.236, allocations: 142.7 kB / 423.9 MB, free: 53.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003653/0.2396, allocations: 3.697 MB / 427.6 MB, free: 51.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/0.2401, allocations: 267.6 kB / 427.8 MB, free: 51.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.2403, allocations: 91.53 kB / 427.9 MB, free: 51.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.2403, allocations: 0 / 427.9 MB, free: 51.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.2403, allocations: 45.47 kB / 428 MB, free: 51.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.2403, allocations: 0 / 428 MB, free: 51.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00183/0.2422, allocations: 1.056 MB / 429 MB, free: 50.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.057e-05/0.2422, allocations: 61.44 kB / 429.1 MB, free: 50.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01141/0.2536, allocations: 13.88 MB / 442.9 MB, free: 45.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.2537, allocations: 29.7 kB / 443 MB, free: 45.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.254, allocations: 475.7 kB / 443.4 MB, free: 44.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.229e-05/0.254, allocations: 93.72 kB / 443.5 MB, free: 44.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-05/0.2541, allocations: 49.48 kB / 443.6 MB, free: 44.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.377e-05/0.2542, allocations: 327.5 kB / 443.9 MB, free: 44.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.2543, allocations: 56.06 kB / 444 MB, free: 44.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.2544, allocations: 112.2 kB / 444.1 MB, free: 44.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.2546, allocations: 183.5 kB / 444.2 MB, free: 44.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2547, allocations: 0 / 444.2 MB, free: 44.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006806/0.2553, allocations: 384.5 kB / 444.6 MB, free: 44.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2554, allocations: 6.438 kB / 444.6 MB, free: 44.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2554, allocations: 6.203 kB / 444.6 MB, free: 44.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.2557, allocations: 66.73 kB / 444.7 MB, free: 44.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.2559, allocations: 52.97 kB / 444.8 MB, free: 44.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.2571, allocations: 2.105 MB / 446.9 MB, free: 42.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.2574, allocations: 13.62 kB / 446.9 MB, free: 42.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.2575, allocations: 10.91 kB / 446.9 MB, free: 42.05 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 (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.0003037/0.2578, allocations: 373.5 kB / 447.2 MB, free: 41.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.2579, allocations: 101.5 kB / 447.3 MB, free: 41.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003169/0.2582, allocations: 300.8 kB / 447.6 MB, free: 41.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2582, allocations: 3.094 kB / 447.6 MB, free: 41.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.2582, allocations: 0.6875 kB / 447.6 MB, free: 41.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2582, allocations: 4.219 kB / 447.6 MB, free: 41.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009836/0.2592, allocations: 1.145 MB / 448.8 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2592, allocations: 7.031 kB / 448.8 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002125/0.2594, allocations: 60.78 kB / 448.9 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2595, allocations: 3.281 kB / 448.9 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.2595, allocations: 0 / 448.9 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2595, allocations: 11.77 kB / 448.9 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2595, allocations: 0 / 448.9 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003759/0.2599, allocations: 449.6 kB / 449.3 MB, free: 40.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.2601, allocations: 284 kB / 449.6 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.485e-05/0.2602, allocations: 0 / 449.6 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.2604, allocations: 17 kB / 449.6 MB, free: 40.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.644e-05/0.2604, allocations: 19.89 kB / 449.6 MB, free: 40.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.2605, allocations: 3.156 kB / 449.6 MB, free: 40.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.006912/0.2674, allocations: 11.11 MB / 460.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2674, allocations: 0 / 460.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005553/0.2679, allocations: 106.5 kB / 460.8 MB, free: 35.86 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.001269/0.2692, allocations: 1.255 MB / 462.1 MB, free: 35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004602/0.2697, allocations: 305.1 kB / 462.4 MB, free: 34.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2697, allocations: 1.094 kB / 462.4 MB, free: 34.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.2698, allocations: 78.67 kB / 462.5 MB, free: 34.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007182/0.2705, allocations: 134.4 kB / 462.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.046/0.3166, allocations: 44.79 MB / 0.4955 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006152/0.3172, allocations: 1.066 MB / 0.4965 GB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002775/0.3175, allocations: 123.9 kB / 0.4967 GB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.3179, allocations: 332 kB / 0.497 GB, free: 11.33 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3179, allocations: 0 / 0.497 GB, free: 11.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06468/0.3826, allocations: 25.06 MB / 0.5215 GB, free: 5.859 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002481/0.3828, allocations: 297.1 kB / 0.5217 GB, free: 5.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/2.698, allocations: 0 / 0.5217 GB, free: 5.48 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleDrive_forFMU.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe 2>&1)