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.00465/0.00465, allocations: 102 kB / 15.73 MB, free: 6.035 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.001079/0.001078, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.008266/0.008266, allocations: 1.288 MB / 291.8 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 58.98 kB / 402.9 MB, free: 8.605 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09929, allocations: 49.73 MB / 452.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.005062/0.1044, allocations: 3.242 MB / 455.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003301/0.1077, allocations: 2.227 MB / 458.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003491/0.1081, allocations: 8 kB / 458.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.1105, allocations: 1.076 MB / 459.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007325/0.1112, allocations: 362.4 kB / 459.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.1117, allocations: 135.7 kB / 459.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006316/0.1123, allocations: 0.5332 MB / 460.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.1125, allocations: 128 kB / 460.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.1128, allocations: 239.1 kB / 460.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.1132, allocations: 343.1 kB / 460.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.079e-05/0.1132, allocations: 32 kB / 460.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.1134, allocations: 87.91 kB / 461 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.1137, allocations: 280.7 kB / 461.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000304/0.114, allocations: 429.2 kB / 461.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009932/0.115, allocations: 1.075 MB / 462.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.115, allocations: 0 / 462.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.115, allocations: 0 / 462.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.115, allocations: 0 / 462.8 MB, free: 9.941 MB / 334.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.001848/0.1169, allocations: 1.33 MB / 464.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1169, allocations: 12.03 kB / 464.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.364e-05/0.117, allocations: 63.19 kB / 464.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.1172, allocations: 114.7 kB / 464.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008278/0.1255, allocations: 10.56 MB / 474.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.1255, allocations: 16.56 kB / 474.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.063e-05/0.1256, allocations: 27.91 kB / 474.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.126, allocations: 227.7 kB / 475.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.126, allocations: 7.922 kB / 475.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.1261, allocations: 19.94 kB / 475.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.1261, allocations: 7.938 kB / 475.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.1263, allocations: 146.1 kB / 475.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00332/0.1297, allocations: 3.683 MB / 479 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004503/0.1301, allocations: 267.9 kB / 479.3 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.1303, allocations: 88.89 kB / 479.3 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.1304, allocations: 4.375 kB / 479.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.1304, allocations: 42.5 kB / 479.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.585e-06/0.1304, allocations: 0 / 479.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001784/0.1322, allocations: 1.073 MB / 480.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.1323, allocations: 51.41 kB / 480.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/0.144, allocations: 13.89 MB / 494.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.1441, allocations: 29.7 kB / 494.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00039/0.1445, allocations: 468.7 kB / 494.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/0.1446, allocations: 90.66 kB / 495 MB, free: 9.379 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.301e-05/0.1447, allocations: 57.89 kB / 495 MB, free: 9.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1448, allocations: 318 kB / 495.3 MB, free: 9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1449, allocations: 60.53 kB / 495.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.145, allocations: 114.1 kB / 495.5 MB, free: 8.812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.1453, allocations: 181.1 kB / 495.7 MB, free: 8.617 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1453, allocations: 0 / 495.7 MB, free: 8.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008203/0.1461, allocations: 373.8 kB / 496.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1461, allocations: 11.98 kB / 496.1 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1462, allocations: 0 / 496.1 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.1465, allocations: 69.67 kB / 496.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.1466, allocations: 52.08 kB / 496.2 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/0.1484, allocations: 2.277 MB / 498.5 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.1487, allocations: 19.97 kB / 498.5 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.1488, allocations: 12 kB / 498.5 MB, free: 5.633 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.0004281/0.1492, allocations: 369.8 kB / 498.9 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.1494, allocations: 106.7 kB / 499 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004227/0.1498, allocations: 299.4 kB / 499.3 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1498, allocations: 4 kB / 499.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.1498, allocations: 0 / 499.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.1498, allocations: 3.938 kB / 499.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.1512, allocations: 1.142 MB / 0.4887 GB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1512, allocations: 8.016 kB / 0.4887 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.1514, allocations: 55.92 kB / 0.4887 GB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1514, allocations: 0 / 0.4887 GB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.1515, allocations: 11.98 kB / 0.4887 GB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1515, allocations: 0 / 0.4887 GB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1515, allocations: 3.938 kB / 0.4887 GB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005121/0.152, allocations: 452.8 kB / 0.4892 GB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/0.1523, allocations: 279.6 kB / 0.4894 GB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.468e-05/0.1524, allocations: 4 kB / 0.4895 GB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.1526, allocations: 16 kB / 0.4895 GB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.62e-05/0.1527, allocations: 7.984 kB / 0.4895 GB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.1527, allocations: 12 kB / 0.4895 GB, free: 2.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.008953/0.1617, allocations: 11.11 MB / 0.5003 GB, free: 7.633 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.1617, allocations: 0 / 0.5003 GB, free: 7.633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007543/0.1625, allocations: 108 kB / 0.5004 GB, free: 7.527 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.00171/0.1642, allocations: 1.255 MB / 0.5017 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006768/0.1649, allocations: 310.6 kB / 0.502 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.1649, allocations: 0 / 0.502 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.165, allocations: 83.84 kB / 0.502 GB, free: 5.977 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008749/0.1659, allocations: 151.3 kB / 0.5022 GB, free: 5.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05769/0.2236, allocations: 43.86 MB / 0.545 GB, free: 9.797 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008469/0.2245, allocations: 1.074 MB / 0.5461 GB, free: 8.699 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004097/0.2249, allocations: 124.7 kB / 0.5462 GB, free: 8.578 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005436/0.2255, allocations: 335.3 kB / 0.5465 GB, free: 8.25 MB / 430.1 MB Notification: Performance of SimCode: time 1.243e-06/0.2255, allocations: 0 / 0.5465 GB, free: 8.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2974/0.5229, allocations: 25.82 MB / 0.5717 GB, free: 98.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.2, allocations: 6.188 kB / 0.5717 GB, free: 98.96 MB / 430.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)