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.2.0-alpha.1/package.mo", uses=false) Using package Credibility with version 0.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/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.005319/0.005319, allocations: 99.34 kB / 15.73 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.0014/0.001401, allocations: 198.8 kB / 16.67 MB, free: 5.934 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/package.mo): time 0.009672/0.009672, allocations: 1.285 MB / 291.8 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 63.91 kB / 402.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.243, allocations: 49.72 MB / 452.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.003561/0.2466, allocations: 3.229 MB / 455.9 MB, free: 19.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.2489, allocations: 2.216 MB / 458.1 MB, free: 18.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.2491, allocations: 13.22 kB / 458.1 MB, free: 18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.2507, allocations: 1.057 MB / 459.2 MB, free: 17.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004075/0.2511, allocations: 343 kB / 459.5 MB, free: 17.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.2514, allocations: 150.3 kB / 459.6 MB, free: 17.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003775/0.2518, allocations: 0.5257 MB / 460.2 MB, free: 17.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.252, allocations: 132.1 kB / 460.3 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.2522, allocations: 242.7 kB / 460.5 MB, free: 17.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.2524, allocations: 341.1 kB / 460.9 MB, free: 17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.181e-05/0.2525, allocations: 34.34 kB / 460.9 MB, free: 17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.2526, allocations: 79.89 kB / 461 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2528, allocations: 286 kB / 461.3 MB, free: 16.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.253, allocations: 422.3 kB / 461.7 MB, free: 16.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007554/0.2538, allocations: 1.083 MB / 462.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2538, allocations: 0 / 462.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2538, allocations: 0 / 462.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.2538, allocations: 0 / 462.8 MB, free: 16.11 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.001498/0.2553, allocations: 1.382 MB / 464.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2553, allocations: 10.03 kB / 464.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.112e-05/0.2554, allocations: 63.41 kB / 464.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.2556, allocations: 118.2 kB / 464.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008413/0.264, allocations: 10.57 MB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.264, allocations: 25.8 kB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.2641, allocations: 24.22 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/0.2645, allocations: 231.4 kB / 475.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.2646, allocations: 1.891 kB / 475.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.2646, allocations: 10.16 kB / 475.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2646, allocations: 10.12 kB / 475.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.2649, allocations: 139.7 kB / 475.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004189/0.2691, allocations: 3.694 MB / 479 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004858/0.2696, allocations: 263.4 kB / 479.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.2698, allocations: 86.27 kB / 479.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.2699, allocations: 6.688 kB / 479.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.2699, allocations: 41.38 kB / 479.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.595e-06/0.2699, allocations: 0 / 479.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.002075/0.272, allocations: 1.092 MB / 480.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.272, allocations: 55.41 kB / 480.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/0.2844, allocations: 13.89 MB / 494.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.052e-05/0.2845, allocations: 33.7 kB / 494.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005462/0.2851, allocations: 470.1 kB / 494.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.2852, allocations: 100.2 kB / 495 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.2854, allocations: 52.91 kB / 495.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2855, allocations: 319.8 kB / 495.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.2857, allocations: 54.33 kB / 495.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.2858, allocations: 115.7 kB / 495.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.2861, allocations: 188.8 kB / 495.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2861, allocations: 3.938 kB / 495.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001006/0.2872, allocations: 385.2 kB / 496.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2872, allocations: 4 kB / 496.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.2872, allocations: 4 kB / 496.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003697/0.2876, allocations: 78.62 kB / 496.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.2878, allocations: 46.31 kB / 496.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.2901, allocations: 2.276 MB / 498.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.2906, allocations: 24.62 kB / 498.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.2906, allocations: 12 kB / 498.6 MB, free: 8.707 MB / 366.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.0005655/0.2912, allocations: 368 kB / 498.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.2915, allocations: 104 kB / 499 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005938/0.2921, allocations: 295.8 kB / 499.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2921, allocations: 4.703 kB / 499.3 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.2921, allocations: 4.094 kB / 499.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2921, allocations: 5.344 kB / 499.3 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.2943, allocations: 1.132 MB / 0.4887 GB, free: 7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2943, allocations: 0 / 0.4887 GB, free: 7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.2946, allocations: 63.19 kB / 0.4888 GB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.2947, allocations: 4.703 kB / 0.4888 GB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.2947, allocations: 0 / 0.4888 GB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2947, allocations: 8.688 kB / 0.4888 GB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2947, allocations: 0 / 0.4888 GB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006908/0.2954, allocations: 461 kB / 0.4892 GB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004918/0.2959, allocations: 280.8 kB / 0.4895 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.296, allocations: 4 kB / 0.4895 GB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/0.2963, allocations: 12.56 kB / 0.4895 GB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.2964, allocations: 21.02 kB / 0.4896 GB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.2964, allocations: 4.562 kB / 0.4896 GB, free: 6.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0108/0.3072, allocations: 11.12 MB / 0.5004 GB, free: 11.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.3072, allocations: 0 / 0.5004 GB, free: 11.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001136/0.3084, allocations: 111.9 kB / 0.5005 GB, free: 11.16 MB / 382.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.002522/0.3109, allocations: 1.268 MB / 0.5018 GB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006908/0.3116, allocations: 307.5 kB / 0.502 GB, free: 9.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3117, allocations: 0 / 0.502 GB, free: 9.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3118, allocations: 83.91 kB / 0.5021 GB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.3129, allocations: 147.3 kB / 0.5023 GB, free: 9.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06763/0.3806, allocations: 43.9 MB / 0.5451 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009767/0.3816, allocations: 1.082 MB / 0.5462 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004506/0.3821, allocations: 128.6 kB / 0.5463 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005639/0.3826, allocations: 331.3 kB / 0.5466 GB, free: 11.82 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3827, allocations: 0 / 0.5466 GB, free: 11.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07808/0.4607, allocations: 25.83 MB / 0.5719 GB, free: 2.227 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.32, allocations: 14.83 kB / 0.5719 GB, free: 2.215 MB / 446.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)