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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/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(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",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.007657/0.007657, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.002007/0.002007, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1645/0.1645, allocations: 11.18 MB / 301.7 MB, free: 1.332 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 59.91 kB / 417.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2283, allocations: 51.98 MB / 469.3 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.002359/0.2307, allocations: 1.598 MB / 470.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005161/0.2312, allocations: 248.5 kB / 471.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.997e-05/0.2313, allocations: 0 / 471.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.798e-05/0.2314, allocations: 13.69 kB / 471.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.068e-05/0.2314, allocations: 15.75 kB / 471.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.2317, allocations: 76.16 kB / 471.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000169/0.2319, allocations: 102.8 kB / 471.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.2321, allocations: 21.62 kB / 471.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.306e-05/0.2321, allocations: 44.78 kB / 471.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.827e-05/0.2322, allocations: 50.27 kB / 471.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.2322, allocations: 8.875 kB / 471.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.2323, allocations: 29.33 kB / 471.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.957e-05/0.2323, allocations: 32.98 kB / 471.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.603e-05/0.2324, allocations: 49.12 kB / 471.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001847/0.2326, allocations: 110.8 kB / 471.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2326, allocations: 5.031 kB / 471.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2326, allocations: 0 / 471.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.2326, allocations: 3.938 kB / 471.7 MB, free: 15.09 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005196/0.2331, allocations: 425.9 kB / 472.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2332, allocations: 12.89 kB / 472.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.477e-05/0.2332, allocations: 39.16 kB / 472.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.311e-05/0.2333, allocations: 15.56 kB / 472.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.2335, allocations: 211.4 kB / 472.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.2335, allocations: 8.266 kB / 472.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.2335, allocations: 14.09 kB / 472.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.2337, allocations: 86.91 kB / 472.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2338, allocations: 3.938 kB / 472.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.2338, allocations: 6.969 kB / 472.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.2338, allocations: 0 / 472.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.2339, allocations: 45.7 kB / 472.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005391/0.2345, allocations: 384.3 kB / 472.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.2347, allocations: 99.55 kB / 473 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.997e-05/0.2348, allocations: 56.61 kB / 473.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.2348, allocations: 1.375 kB / 473.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.235, allocations: 125.8 kB / 473.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.2351, allocations: 1.312 kB / 473.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003918/0.2355, allocations: 176.5 kB / 473.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.2355, allocations: 54.53 kB / 473.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.2356, allocations: 178.1 kB / 473.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.2356, allocations: 31.08 kB / 473.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.2357, allocations: 118.7 kB / 473.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.2357, allocations: 44.02 kB / 473.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/0.2358, allocations: 39.66 kB / 473.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.09e-05/0.2358, allocations: 328.1 kB / 474.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.604e-05/0.2359, allocations: 35.89 kB / 474.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.893e-05/0.236, allocations: 79.98 kB / 474.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.2362, allocations: 121.4 kB / 474.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2362, allocations: 3.938 kB / 474.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002353/0.2364, allocations: 160.6 kB / 474.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2364, allocations: 5.719 kB / 474.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2365, allocations: 2.625 kB / 474.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.2365, allocations: 2.719 kB / 474.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.2366, allocations: 34.72 kB / 474.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2366, allocations: 6.656 kB / 474.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.877e-05/0.2367, allocations: 9.641 kB / 474.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.2367, allocations: 9.531 kB / 474.6 MB, free: 12.77 MB / 350.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 7.533e-05/0.2368, allocations: 130 kB / 474.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.2368, allocations: 18.27 kB / 474.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.2369, allocations: 15.73 kB / 474.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2369, allocations: 5.188 kB / 474.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2369, allocations: 0 / 474.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2369, allocations: 5.219 kB / 474.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004033/0.2373, allocations: 431.1 kB / 475.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2373, allocations: 1.375 kB / 475.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.374e-05/0.2374, allocations: 20.73 kB / 475.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2374, allocations: 1.375 kB / 475.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.2375, allocations: 6.359 kB / 475.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2375, allocations: 1.375 kB / 475.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2375, allocations: 3.938 kB / 475.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.2378, allocations: 294.5 kB / 475.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.073e-05/0.2379, allocations: 87.77 kB / 475.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.2379, allocations: 9.562 kB / 475.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.322e-05/0.238, allocations: 1.375 kB / 475.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.2381, allocations: 16.44 kB / 475.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.2381, allocations: 5.75 kB / 475.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.699e-05/0.2381, allocations: 126.7 kB / 475.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2381, allocations: 0 / 475.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002689/0.2384, allocations: 29.94 kB / 475.8 MB, free: 11.84 MB / 350.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.0005085/0.2389, allocations: 0.8416 MB / 476.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002205/0.2392, allocations: 109.2 kB / 476.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2392, allocations: 0 / 476.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.2393, allocations: 49.39 kB / 476.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.2396, allocations: 39.95 kB / 476.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.2414, allocations: 1.921 MB / 478.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.2415, allocations: 0.7054 MB / 479.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.784e-05/0.2416, allocations: 21.53 kB / 479.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.079e-05/0.2416, allocations: 31.97 kB / 479.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2416, allocations: 0 / 479.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.2663, allocations: 3.022 MB / 482.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.187, allocations: 12.47 kB / 482.6 MB, free: 7.188 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)