Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 118.5 kB / 16.37 MB, free: 6.004 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.00097/0.00097, allocations: 192.8 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05633/0.05633, allocations: 10.74 MB / 281.3 MB, free: 1.32 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 71.89 kB / 342 MB, free: 4.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2324, allocations: 49.01 MB / 391 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.002409/0.2348, allocations: 1.586 MB / 392.6 MB, free: 48.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004511/0.2353, allocations: 256 kB / 392.8 MB, free: 48.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.629e-05/0.2354, allocations: 5.75 kB / 392.8 MB, free: 48.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.193e-05/0.2354, allocations: 8.672 kB / 392.9 MB, free: 48.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.268e-05/0.2355, allocations: 14.77 kB / 392.9 MB, free: 48.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.2358, allocations: 65.38 kB / 392.9 MB, free: 48.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.236, allocations: 106.4 kB / 393 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.2361, allocations: 25.84 kB / 393.1 MB, free: 48.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.025e-05/0.2362, allocations: 40.81 kB / 393.1 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.358e-05/0.2362, allocations: 49.44 kB / 393.1 MB, free: 48.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.2363, allocations: 9.625 kB / 393.2 MB, free: 48.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.317e-05/0.2364, allocations: 33.25 kB / 393.2 MB, free: 48.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.344e-05/0.2364, allocations: 28.53 kB / 393.2 MB, free: 48.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.91e-05/0.2365, allocations: 54.55 kB / 393.3 MB, free: 48.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.2366, allocations: 103.8 kB / 393.4 MB, free: 48.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2367, allocations: 1.375 kB / 393.4 MB, free: 48.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2367, allocations: 4 kB / 393.4 MB, free: 48.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.2367, allocations: 0.8906 kB / 393.4 MB, free: 48.4 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005473/0.2372, allocations: 428.2 kB / 393.8 MB, free: 47.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2373, allocations: 13.48 kB / 393.8 MB, free: 47.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.2373, allocations: 15.09 kB / 393.8 MB, free: 47.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.2375, allocations: 211.9 kB / 394 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.2375, allocations: 8.484 kB / 394 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.2375, allocations: 10.48 kB / 394.1 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.2377, allocations: 97.44 kB / 394.1 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.2377, allocations: 1.5 kB / 394.1 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.2377, allocations: 4.547 kB / 394.2 MB, free: 47.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2378, allocations: 3 kB / 394.2 MB, free: 47.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.2379, allocations: 44.69 kB / 394.2 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005053/0.2384, allocations: 384 kB / 394.6 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.2386, allocations: 98.97 kB / 394.7 MB, free: 47.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.713e-05/0.2387, allocations: 56.31 kB / 394.7 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.2387, allocations: 2.156 kB / 394.7 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.2389, allocations: 106.9 kB / 394.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/0.2389, allocations: 5.406 kB / 394.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003933/0.2393, allocations: 182.2 kB / 395 MB, free: 47.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.2394, allocations: 55.52 kB / 395.1 MB, free: 47.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.2395, allocations: 172.6 kB / 395.2 MB, free: 46.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.2395, allocations: 33.27 kB / 395.3 MB, free: 46.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.519e-05/0.2396, allocations: 104.9 kB / 395.4 MB, free: 46.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.2396, allocations: 43.75 kB / 395.4 MB, free: 46.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.2397, allocations: 41.66 kB / 395.5 MB, free: 46.74 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.933e-05/0.2397, allocations: 326.5 kB / 395.8 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.228e-05/0.2398, allocations: 30.83 kB / 395.8 MB, free: 46.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.973e-05/0.2399, allocations: 89.48 kB / 395.9 MB, free: 46.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.2401, allocations: 129.5 kB / 396 MB, free: 46.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2401, allocations: 0 / 396 MB, free: 46.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002334/0.2403, allocations: 165.3 kB / 396.2 MB, free: 46.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2403, allocations: 10.09 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2403, allocations: 1.375 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.2404, allocations: 2.75 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.2405, allocations: 27.45 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2405, allocations: 7.297 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.575e-05/0.2406, allocations: 16.58 kB / 396.2 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.2406, allocations: 6.438 kB / 396.3 MB, free: 46.13 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_TU.y,$PRE.fO_dig_TU.y,fO_dig_FE.y,$PRE.fO_dig_FE.y,fO_dig_BE.y,$PRE.fO_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 prepare postOptimizeDAE: time 6.567e-05/0.2407, allocations: 130.6 kB / 396.4 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.2407, allocations: 15.47 kB / 396.4 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.2407, allocations: 18.06 kB / 396.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2407, allocations: 1.375 kB / 396.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2407, allocations: 1.375 kB / 396.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2408, allocations: 0.7969 kB / 396.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/0.2411, allocations: 447.1 kB / 396.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.2411, allocations: 0.75 kB / 396.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.849e-05/0.2412, allocations: 16.47 kB / 396.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2413, allocations: 1.375 kB / 396.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.2413, allocations: 7.547 kB / 396.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2413, allocations: 0.75 kB / 396.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2413, allocations: 7.875 kB / 396.9 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.2416, allocations: 287.4 kB / 397.2 MB, free: 45.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.037e-05/0.2417, allocations: 94.53 kB / 397.3 MB, free: 45.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.2417, allocations: 6.141 kB / 397.3 MB, free: 45.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.292e-05/0.2418, allocations: 3.578 kB / 397.3 MB, free: 45.31 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.2418, allocations: 12.39 kB / 397.3 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2419, allocations: 7.531 kB / 397.3 MB, free: 45.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.285e-05/0.2419, allocations: 123.3 kB / 397.4 MB, free: 45.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2419, allocations: 0 / 397.4 MB, free: 45.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.2422, allocations: 30.55 kB / 397.4 MB, free: 45.21 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001149/0.2423, allocations: 120.5 kB / 397.6 MB, free: 45.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.2426, allocations: 100.7 kB / 397.7 MB, free: 45.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2426, allocations: 0 / 397.7 MB, free: 45.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.2427, allocations: 51.59 kB / 397.7 MB, free: 45.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.243, allocations: 36.48 kB / 397.7 MB, free: 45.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000599/0.2436, allocations: 279.8 kB / 398 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.2437, allocations: 0.7053 MB / 398.7 MB, free: 44.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.131e-05/0.2438, allocations: 19.66 kB / 398.7 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.2438, allocations: 17.12 kB / 398.8 MB, free: 44.16 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2438, allocations: 0 / 398.8 MB, free: 44.16 MB / 318.1 MB Notification: Performance of Templates: time 0.00381/0.2476, allocations: 1.356 MB / 400.1 MB, free: 43.95 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)