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.000841/0.0008411, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0009503/0.0009503, allocations: 172.7 kB / 15.95 MB, free: 208 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.245/1.245, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05409/0.05409, allocations: 10.75 MB / 281.1 MB, free: 10.55 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.0004891/0.0004893, allocations: 16 kB / 341.7 MB, free: 23.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07223/0.07273, allocations: 50.02 MB / 391.7 MB, free: 5.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.001582/0.07435, allocations: 1.281 MB / 393 MB, free: 4.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004939/0.07487, allocations: 243.4 kB / 393.3 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.767e-05/0.07495, allocations: 0 / 393.3 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.193e-05/0.07499, allocations: 7.922 kB / 393.3 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.419e-05/0.07509, allocations: 15.88 kB / 393.3 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.07535, allocations: 51.88 kB / 393.3 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.07551, allocations: 91.75 kB / 393.4 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.351e-05/0.07561, allocations: 17.45 kB / 393.4 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.603e-05/0.07567, allocations: 35.78 kB / 393.5 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.07574, allocations: 39.77 kB / 393.5 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.07576, allocations: 8 kB / 393.5 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.193e-05/0.07585, allocations: 35.97 kB / 393.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/0.07589, allocations: 19.86 kB / 393.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.705e-05/0.07593, allocations: 37.64 kB / 393.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.07605, allocations: 71.84 kB / 393.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.07606, allocations: 0 / 393.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.07607, allocations: 4 kB / 393.7 MB, free: 3.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.07608, allocations: 4 kB / 393.7 MB, free: 3.703 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.0005061/0.07659, allocations: 403.1 kB / 394.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.07664, allocations: 12.03 kB / 394.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.098e-05/0.07669, allocations: 34.56 kB / 394.1 MB, free: 3.207 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.07673, allocations: 19.77 kB / 394.1 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.07693, allocations: 207.5 kB / 394.3 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.07695, allocations: 8 kB / 394.4 MB, free: 2.938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.07698, allocations: 8 kB / 394.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.07717, allocations: 89.64 kB / 394.4 MB, free: 2.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.07719, allocations: 0 / 394.4 MB, free: 2.836 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.07721, allocations: 7.938 kB / 394.5 MB, free: 2.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.07722, allocations: 4 kB / 394.5 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.07734, allocations: 51.91 kB / 394.5 MB, free: 2.773 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.0779, allocations: 384.6 kB / 394.9 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.0781, allocations: 110.5 kB / 395 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.07822, allocations: 56.84 kB / 395.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.07824, allocations: 4 kB / 395.1 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.07846, allocations: 107.3 kB / 395.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.07847, allocations: 0 / 395.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.000378/0.07885, allocations: 197.4 kB / 395.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.0789, allocations: 51.41 kB / 395.4 MB, free: 1.789 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.07903, allocations: 167.3 kB / 395.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.07905, allocations: 29.7 kB / 395.6 MB, free: 1.578 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.07913, allocations: 120 kB / 395.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.07916, allocations: 31.59 kB / 395.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.07917, allocations: 4 kB / 395.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.396e-05/0.07927, allocations: 326.8 kB / 396.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.871e-05/0.07936, allocations: 39.97 kB / 396.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.592e-05/0.07946, allocations: 74 kB / 396.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.874e-05/0.07956, allocations: 52.42 kB / 396.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.07957, allocations: 3.953 kB / 396.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000256/0.07983, allocations: 169.4 kB / 396.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.07986, allocations: 11.12 kB / 396.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.07987, allocations: 0 / 396.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.07989, allocations: 7.984 kB / 396.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.08003, allocations: 31.92 kB / 396.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.08004, allocations: 0 / 396.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.067e-05/0.08011, allocations: 19.84 kB / 396.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.08012, allocations: 4 kB / 396.5 MB, free: 0.6641 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 9.526e-05/0.08022, allocations: 133.9 kB / 396.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.08025, allocations: 11.86 kB / 396.6 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.836e-05/0.08029, allocations: 17.53 kB / 396.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.0803, allocations: 4 kB / 396.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.08031, allocations: 0 / 396.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.08032, allocations: 3.984 kB / 396.6 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.08077, allocations: 442.3 kB / 397.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.0808, allocations: 112 / 397.1 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.515e-05/0.08091, allocations: 27.86 kB / 397.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.08092, allocations: 0 / 397.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.08094, allocations: 8 kB / 397.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.08095, allocations: 3.938 kB / 397.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.08096, allocations: 0 / 397.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003756/0.08134, allocations: 307.2 kB / 397.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.34e-05/0.08139, allocations: 85.05 kB / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.08142, allocations: 0 / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.472e-05/0.0815, allocations: 11.98 kB / 397.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.08155, allocations: 7.984 kB / 397.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.08157, allocations: 4 kB / 397.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.011e-05/0.08166, allocations: 124 kB / 397.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08167, allocations: 7.938 kB / 397.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.08194, allocations: 28 kB / 397.7 MB, free: 15.36 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.0006348/0.08258, allocations: 0.8451 MB / 398.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.08283, allocations: 104.3 kB / 398.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.08284, allocations: 0 / 398.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.804e-05/0.08294, allocations: 55.91 kB / 398.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.08326, allocations: 26.06 kB / 398.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.08465, allocations: 0.8777 MB / 399.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.0849, allocations: 0.7049 MB / 400.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.363e-05/0.08497, allocations: 25.34 kB / 400.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.469e-05/0.08503, allocations: 31.44 kB / 400.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.08504, allocations: 0 / 400.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01364/0.09868, allocations: 2.665 MB / 403 MB, free: 10.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.09893, allocations: 221.1 kB / 403.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/1.63, allocations: 0 / 403.2 MB, free: 9.781 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: