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: "" <> 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.0012/0.0012, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001301/0.001301, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05426/0.05426, allocations: 10.73 MB / 281.1 MB, free: 10.57 MB / 238.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.0005765/0.0005765, allocations: 16 kB / 341.7 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1282, allocations: 50.01 MB / 391.7 MB, free: 5.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.00238/0.1307, allocations: 1.281 MB / 393 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006285/0.1314, allocations: 255.3 kB / 393.2 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.606e-05/0.1314, allocations: 0 / 393.2 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.532e-05/0.1315, allocations: 3.938 kB / 393.2 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1316, allocations: 11.94 kB / 393.2 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.1319, allocations: 51.88 kB / 393.3 MB, free: 4.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.1321, allocations: 63.86 kB / 393.4 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.1323, allocations: 21.44 kB / 393.4 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.744e-05/0.1324, allocations: 31.84 kB / 393.4 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.211e-05/0.1325, allocations: 39.77 kB / 393.4 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.1325, allocations: 4 kB / 393.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.198e-05/0.1326, allocations: 35.91 kB / 393.5 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.1326, allocations: 19.92 kB / 393.5 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.457e-05/0.1327, allocations: 41.58 kB / 393.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.1328, allocations: 79.84 kB / 393.6 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1328, allocations: 0 / 393.6 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1328, allocations: 0 / 393.6 MB, free: 3.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1328, allocations: 0 / 393.6 MB, free: 3.77 MB / 286.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.0006175/0.1334, allocations: 415 kB / 394 MB, free: 3.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.1335, allocations: 8.031 kB / 394 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.1336, allocations: 38.56 kB / 394.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.1336, allocations: 19.75 kB / 394.1 MB, free: 3.242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.1339, allocations: 199.5 kB / 394.3 MB, free: 3.008 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1339, allocations: 4 kB / 394.3 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.134, allocations: 12 kB / 394.3 MB, free: 2.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/0.1342, allocations: 89.58 kB / 394.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1342, allocations: 0 / 394.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.1342, allocations: 4 kB / 394.4 MB, free: 2.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1342, allocations: 4 kB / 394.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.1344, allocations: 47.97 kB / 394.4 MB, free: 2.844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.135, allocations: 396.5 kB / 394.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.1353, allocations: 98.64 kB / 394.9 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.1353, allocations: 0 / 394.9 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002841/0.1356, allocations: 111.5 kB / 395 MB, free: 2.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.1356, allocations: 3.938 kB / 395 MB, free: 2.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004834/0.1361, allocations: 185.8 kB / 395.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.1361, allocations: 59.39 kB / 395.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.1363, allocations: 167.3 kB / 395.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.1364, allocations: 29.7 kB / 395.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.652e-05/0.1365, allocations: 116 kB / 395.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.561e-05/0.1365, allocations: 39.59 kB / 395.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.337e-06/0.1365, allocations: 0 / 395.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1367, allocations: 330.8 kB / 395.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.789e-05/0.1368, allocations: 31.98 kB / 396 MB, free: 1.188 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.1369, allocations: 85.92 kB / 396.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.723e-05/0.137, allocations: 48.11 kB / 396.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.137, allocations: 0 / 396.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002859/0.1373, allocations: 169.3 kB / 396.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1374, allocations: 4 kB / 396.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1374, allocations: 0 / 396.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1374, allocations: 4 kB / 396.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.1376, allocations: 35.92 kB / 396.3 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1376, allocations: 4 kB / 396.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.986e-05/0.1377, allocations: 16.03 kB / 396.3 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.1377, allocations: 11.94 kB / 396.3 MB, free: 0.7891 MB / 286.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,$PRE.fO_dig_BE.y,fO_dig_BE.y,$PRE.fO_dig_FE.y,fO_dig_FE.y,$PRE.fO_dig_TU.y,fO_dig_TU.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001384/0.1379, allocations: 124.8 kB / 396.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.429e-05/0.1379, allocations: 15.86 kB / 396.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.25e-05/0.1379, allocations: 25.5 kB / 396.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1379, allocations: 0 / 396.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.138, allocations: 0 / 396.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.138, allocations: 0 / 396.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/0.1385, allocations: 454.2 kB / 397 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1385, allocations: 4 kB / 397 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.29e-05/0.1386, allocations: 16 kB / 397 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1386, allocations: 3.984 kB / 397 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1386, allocations: 4 kB / 397 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1386, allocations: 4 kB / 397 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1386, allocations: 4 kB / 397 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.1391, allocations: 299.2 kB / 397.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.1391, allocations: 85.05 kB / 397.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.1392, allocations: 8 kB / 397.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.769e-05/0.1392, allocations: 8.062 kB / 397.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.1393, allocations: 11.98 kB / 397.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.1393, allocations: 7.984 kB / 397.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.213e-05/0.1394, allocations: 120 kB / 397.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1394, allocations: 0 / 397.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002617/0.1397, allocations: 24 kB / 397.5 MB, free: 15.5 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007345/0.1404, allocations: 0.8453 MB / 398.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002522/0.1407, allocations: 112 kB / 398.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1407, allocations: 448 / 398.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.1408, allocations: 55.92 kB / 398.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.1411, allocations: 29.55 kB / 398.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.1429, allocations: 1.768 MB / 400.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.1432, allocations: 0.7126 MB / 401.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.092e-05/0.1432, allocations: 21.42 kB / 401.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.771e-05/0.1433, allocations: 35.42 kB / 401.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1433, allocations: 0 / 401.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/0.1562, allocations: 2.637 MB / 403.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.1564, allocations: 212.2 kB / 404 MB, free: 9.023 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/1.903, allocations: 0 / 404 MB, free: 9.023 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1) Environment - environmentSimulation: