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.004495/0.004495, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001202/0.001202, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1515/0.1515, allocations: 11.17 MB / 301.7 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 75.89 kB / 417.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2114, allocations: 51.97 MB / 469.3 MB, free: 16.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.002253/0.2136, allocations: 1.603 MB / 470.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004269/0.2141, allocations: 244.7 kB / 471.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.2141, allocations: 1.188 kB / 471.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.601e-05/0.2142, allocations: 12.7 kB / 471.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.559e-05/0.2143, allocations: 19.28 kB / 471.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.2145, allocations: 69.86 kB / 471.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.2146, allocations: 101.4 kB / 471.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.555e-05/0.2147, allocations: 25.06 kB / 471.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.954e-05/0.2148, allocations: 37.97 kB / 471.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.132e-05/0.2148, allocations: 56.83 kB / 471.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.2149, allocations: 9.188 kB / 471.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.462e-05/0.2149, allocations: 34.5 kB / 471.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.409e-05/0.215, allocations: 21 kB / 471.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.215, allocations: 57 kB / 471.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.2152, allocations: 107 kB / 471.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2152, allocations: 0 / 471.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2152, allocations: 5.469 kB / 471.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.2152, allocations: 0 / 471.7 MB, free: 15.06 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.0004168/0.2156, allocations: 428.2 kB / 472.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2157, allocations: 13.92 kB / 472.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.644e-05/0.2157, allocations: 43.5 kB / 472.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.19e-05/0.2157, allocations: 14.81 kB / 472.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.2159, allocations: 215.6 kB / 472.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.2159, allocations: 4.609 kB / 472.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/0.2159, allocations: 13.94 kB / 472.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.2161, allocations: 90.75 kB / 472.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2161, allocations: 3.938 kB / 472.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.2161, allocations: 2.375 kB / 472.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2161, allocations: 1.781 kB / 472.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.2162, allocations: 48.27 kB / 472.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.2167, allocations: 385 kB / 472.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.2169, allocations: 103 kB / 473 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.267e-05/0.217, allocations: 55.31 kB / 473.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.217, allocations: 1.25 kB / 473.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.2172, allocations: 115.9 kB / 473.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.2172, allocations: 1.25 kB / 473.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003457/0.2176, allocations: 179.8 kB / 473.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.2176, allocations: 58.56 kB / 473.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2177, allocations: 177.9 kB / 473.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2177, allocations: 28.06 kB / 473.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/0.2178, allocations: 112.4 kB / 473.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.2178, allocations: 45.14 kB / 473.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.2178, allocations: 38.02 kB / 473.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.054e-05/0.2179, allocations: 328.8 kB / 474.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.768e-05/0.218, allocations: 31.69 kB / 474.2 MB, free: 13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.55e-05/0.218, allocations: 78.36 kB / 474.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.2182, allocations: 128.9 kB / 474.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2182, allocations: 0 / 474.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002215/0.2184, allocations: 162.8 kB / 474.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.2184, allocations: 9.031 kB / 474.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2184, allocations: 2.531 kB / 474.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2185, allocations: 1.594 kB / 474.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.2186, allocations: 30.47 kB / 474.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2186, allocations: 2.656 kB / 474.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.355e-05/0.2186, allocations: 13.36 kB / 474.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.2187, allocations: 9.688 kB / 474.6 MB, free: 12.73 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 5.922e-05/0.2187, allocations: 135.9 kB / 474.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.2188, allocations: 13.41 kB / 474.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.2188, allocations: 17.66 kB / 474.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2188, allocations: 1.375 kB / 474.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2188, allocations: 5.156 kB / 474.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2188, allocations: 0 / 474.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003474/0.2192, allocations: 442.9 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2192, allocations: 1.375 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.45e-05/0.2193, allocations: 16.94 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2193, allocations: 1.375 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.2193, allocations: 2.781 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2193, allocations: 1.375 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2193, allocations: 3.938 kB / 475.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.2196, allocations: 301.1 kB / 475.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.39e-05/0.2197, allocations: 89.31 kB / 475.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.2197, allocations: 3.453 kB / 475.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.129e-05/0.2198, allocations: 6.688 kB / 475.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.2198, allocations: 16.28 kB / 475.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.2198, allocations: 3.969 kB / 475.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.137e-05/0.2199, allocations: 126.9 kB / 475.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2199, allocations: 0 / 475.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002477/0.2202, allocations: 30.88 kB / 475.8 MB, free: 11.8 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.0004609/0.2206, allocations: 0.8416 MB / 476.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.2208, allocations: 104.5 kB / 476.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2209, allocations: 4.062 kB / 476.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.23e-05/0.221, allocations: 59.69 kB / 476.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.2212, allocations: 42.28 kB / 476.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.2228, allocations: 1.913 MB / 478.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.223, allocations: 0.7095 MB / 479.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.938e-05/0.223, allocations: 13.58 kB / 479.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.853e-05/0.2231, allocations: 39.58 kB / 479.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2231, allocations: 1.156 kB / 479.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08135/0.3044, allocations: 3.004 MB / 482.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.448/8.753, allocations: 8.469 kB / 482.5 MB, free: 7.254 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 & /home/hudson/saved_omc/OMSimulator/install/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)