Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.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.SimpleControlledDrive_original,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original",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.004851/0.004851, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001276/0.001276, allocations: 195.8 kB / 16.68 MB, free: 6.352 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.285 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.02015/0.02015, allocations: 1.288 MB / 291.8 MB, free: 0.8828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002069/0.00207, allocations: 75.88 kB / 402.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2529, allocations: 49.72 MB / 452.6 MB, free: 21.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.004411/0.2574, allocations: 4.21 MB / 456.8 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00328/0.2607, allocations: 2.619 MB / 459.5 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003901/0.2611, allocations: 24.91 kB / 459.5 MB, free: 17.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.263, allocations: 1.107 MB / 460.6 MB, free: 16.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006649/0.2637, allocations: 399.3 kB / 461 MB, free: 16.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006331/0.2644, allocations: 330.5 kB / 461.3 MB, free: 16.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006683/0.265, allocations: 0.8517 MB / 462.1 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/0.2653, allocations: 247.9 kB / 462.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.2656, allocations: 364.6 kB / 462.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.266, allocations: 468 kB / 463.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.039e-05/0.2661, allocations: 58.31 kB / 463.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.2663, allocations: 107.2 kB / 463.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.2665, allocations: 354.7 kB / 463.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.2668, allocations: 0.5349 MB / 464.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.2681, allocations: 1.388 MB / 465.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2681, allocations: 4 kB / 465.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2681, allocations: 3.938 kB / 465.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.2681, allocations: 0 / 465.6 MB, free: 14.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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002406/0.2706, allocations: 1.689 MB / 467.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.2706, allocations: 13.77 kB / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.214e-05/0.2707, allocations: 81.34 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.2709, allocations: 148 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009321/0.2802, allocations: 10.72 MB / 478.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.836e-05/0.2803, allocations: 30.19 kB / 478.3 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.434e-05/0.2804, allocations: 43.39 kB / 478.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.2815, allocations: 491.4 kB / 478.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.2815, allocations: 6 kB / 478.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.2815, allocations: 24.59 kB / 478.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.2816, allocations: 14.5 kB / 478.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.2826, allocations: 418.6 kB / 479.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005728/0.2884, allocations: 4.571 MB / 483.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.2895, allocations: 477.4 kB / 484.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005168/0.29, allocations: 197.7 kB / 484.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.2901, allocations: 5.891 kB / 484.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2901, allocations: 37.45 kB / 484.6 MB, free: 5.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.615e-06/0.2901, allocations: 4 kB / 484.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004118/0.2943, allocations: 1.772 MB / 486.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.2943, allocations: 82.45 kB / 486.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01337/0.3077, allocations: 14.11 MB / 0.4888 GB, free: 7.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.3079, allocations: 37.7 kB / 0.4888 GB, free: 7.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007233/0.3086, allocations: 0.5688 MB / 0.4894 GB, free: 6.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/0.3088, allocations: 150.8 kB / 0.4895 GB, free: 6.781 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.309, allocations: 90.2 kB / 0.4896 GB, free: 6.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3092, allocations: 322 kB / 0.4899 GB, free: 6.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005793/0.3098, allocations: 195 kB / 0.4901 GB, free: 6.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.3104, allocations: 278.9 kB / 0.4904 GB, free: 5.871 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.3114, allocations: 445.6 kB / 0.4908 GB, free: 5.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.3114, allocations: 4 kB / 0.4908 GB, free: 5.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001838/0.3133, allocations: 0.6496 MB / 0.4914 GB, free: 4.738 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3133, allocations: 7.938 kB / 0.4915 GB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3133, allocations: 4 kB / 0.4915 GB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/0.3136, allocations: 36.78 kB / 0.4915 GB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009056/0.3145, allocations: 219.9 kB / 0.4917 GB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.3168, allocations: 2.113 MB / 0.4938 GB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007962/0.3176, allocations: 47.95 kB / 0.4938 GB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/0.3176, allocations: 16 kB / 0.4938 GB, free: 2.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001152/0.3188, allocations: 0.5142 MB / 0.4943 GB, free: 1.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000552/0.3194, allocations: 266.9 kB / 0.4946 GB, free: 1.328 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009275/0.3203, allocations: 425.9 kB / 0.495 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.725e-06/0.3203, allocations: 0 / 0.495 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001724/0.3221, allocations: 0.6221 MB / 0.4956 GB, free: 256 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.3221, allocations: 4 kB / 0.4956 GB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.3221, allocations: 4 kB / 0.4956 GB, free: 248 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.3223, allocations: 49.02 kB / 0.4956 GB, free: 196 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005362/0.3228, allocations: 123.8 kB / 0.4958 GB, free: 72 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000437/0.3233, allocations: 0.5484 MB / 0.4963 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007737/0.3241, allocations: 44.06 kB / 0.4963 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.235e-05/0.3241, allocations: 23.98 kB / 0.4964 GB, free: 15.43 MB / 382.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: 3 (kinematicPTP.noWphase,integrator.local_reset,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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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.0002273/0.3244, allocations: 212.3 kB / 0.4966 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000396/0.3248, allocations: 139.1 kB / 0.4967 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.3263, allocations: 0.5333 MB / 0.4972 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3263, allocations: 7.984 kB / 0.4972 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.3263, allocations: 4 kB / 0.4972 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3263, allocations: 0 / 0.4972 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.3297, allocations: 1.563 MB / 0.4988 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3297, allocations: 4.031 kB / 0.4988 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005501/0.3303, allocations: 103.9 kB / 0.4989 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.3303, allocations: 0 / 0.4989 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.3304, allocations: 15.94 kB / 0.4989 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.3304, allocations: 7.938 kB / 0.4989 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3304, allocations: 0 / 0.4989 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.3323, allocations: 0.8341 MB / 0.4997 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000632/0.3329, allocations: 320.1 kB / 0.5 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.3331, allocations: 11.94 kB / 0.5 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005677/0.3337, allocations: 43.97 kB / 0.5001 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.035e-05/0.3338, allocations: 31.89 kB / 0.5001 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/0.3339, allocations: 12 kB / 0.5001 GB, free: 11.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01138/0.3453, allocations: 11.24 MB / 0.5111 GB, free: 196 kB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3453, allocations: 0 / 0.5111 GB, free: 196 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00167/0.347, allocations: 252 kB / 0.5113 GB, free: 15.94 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (damper.phi_rel,damper.w_rel,inertiaLoad.w,speedController.I.y,integrator.y,torqueLoad.phi) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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.003813/0.3508, allocations: 1.671 MB / 0.513 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.3532, allocations: 0.7779 MB / 0.5137 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3532, allocations: 0 / 0.5137 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.3538, allocations: 216.2 kB / 0.5139 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.3557, allocations: 210.3 kB / 0.5141 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0749/0.4306, allocations: 45.74 MB / 0.5588 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4317, allocations: 1.177 MB / 0.5599 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007302/0.4324, allocations: 194.1 kB / 0.5601 GB, free: 13.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007548/0.4332, allocations: 439.3 kB / 0.5605 GB, free: 13.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4332, allocations: 0 / 0.5605 GB, free: 13.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2938/0.727, allocations: 31.04 MB / 0.5909 GB, free: 120.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.57, allocations: 10.78 kB / 0.5909 GB, free: 120.1 MB / 462.1 MB (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe 2>&1)