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.006903/0.006903, allocations: 99.98 kB / 15.73 MB, free: 6.016 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.002239/0.002239, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.509/1.509, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09901/0.09901, allocations: 10.74 MB / 280.7 MB, free: 10.39 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.001526/0.001526, allocations: 67.84 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2536, allocations: 49.02 MB / 439.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.002513/0.2561, allocations: 1.587 MB / 441 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005128/0.2567, allocations: 248.3 kB / 441.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.616e-05/0.2567, allocations: 0.8125 kB / 441.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.656e-05/0.2568, allocations: 9.328 kB / 441.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.856e-05/0.2569, allocations: 19.84 kB / 441.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.2572, allocations: 68.94 kB / 441.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000192/0.2574, allocations: 99.03 kB / 441.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.2575, allocations: 29.44 kB / 441.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.646e-05/0.2576, allocations: 37.17 kB / 441.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.201e-05/0.2577, allocations: 53.45 kB / 441.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.2577, allocations: 8.938 kB / 441.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.002e-05/0.2578, allocations: 34.02 kB / 441.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.755e-05/0.2579, allocations: 28.83 kB / 441.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.338e-05/0.2579, allocations: 44.98 kB / 441.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.2581, allocations: 117.3 kB / 441.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2582, allocations: 4.938 kB / 441.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.2582, allocations: 4 kB / 441.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.2582, allocations: 0 / 441.7 MB, free: 3.5 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.0005572/0.2587, allocations: 430.5 kB / 442.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2588, allocations: 14.84 kB / 442.2 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.48e-05/0.2588, allocations: 37.55 kB / 442.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.2589, allocations: 15.44 kB / 442.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.259, allocations: 212 kB / 442.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.2591, allocations: 3.844 kB / 442.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.2591, allocations: 14.38 kB / 442.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.2593, allocations: 90.28 kB / 442.5 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2593, allocations: 3.938 kB / 442.5 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.2593, allocations: 1.906 kB / 442.5 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.2593, allocations: 1.375 kB / 442.5 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.2595, allocations: 49.56 kB / 442.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005179/0.26, allocations: 384.8 kB / 443 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.2602, allocations: 107.5 kB / 443.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.935e-05/0.2603, allocations: 56.16 kB / 443.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.185e-06/0.2603, allocations: 1.375 kB / 443.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.2605, allocations: 116.7 kB / 443.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.2605, allocations: 0 / 443.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003796/0.2609, allocations: 179.2 kB / 443.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.2609, allocations: 53.55 kB / 443.5 MB, free: 2.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.2611, allocations: 169.4 kB / 443.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.2611, allocations: 32.55 kB / 443.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.263e-05/0.2611, allocations: 116.8 kB / 443.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.2612, allocations: 43.89 kB / 443.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.2612, allocations: 41.98 kB / 443.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.264e-05/0.2613, allocations: 326.7 kB / 444.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.596e-05/0.2614, allocations: 34.5 kB / 444.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.2615, allocations: 85.42 kB / 444.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.2616, allocations: 125.5 kB / 444.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2616, allocations: 0 / 444.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002408/0.2619, allocations: 161.4 kB / 444.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2619, allocations: 4.781 kB / 444.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2619, allocations: 3.594 kB / 444.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.262, allocations: 6.25 kB / 444.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.2621, allocations: 35 kB / 444.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.2621, allocations: 1.688 kB / 444.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.2622, allocations: 11.27 kB / 444.6 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.2622, allocations: 9.062 kB / 444.7 MB, free: 1.168 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 7.765e-05/0.2623, allocations: 129.5 kB / 444.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.2623, allocations: 14.75 kB / 444.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.965e-05/0.2624, allocations: 18.03 kB / 444.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2624, allocations: 6.469 kB / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2624, allocations: 0 / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2624, allocations: 0.5156 kB / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.2628, allocations: 440 kB / 445.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2628, allocations: 0 / 445.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.2629, allocations: 18.03 kB / 445.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.263, allocations: 0 / 445.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.263, allocations: 16.09 kB / 445.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.263, allocations: 0 / 445.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.263, allocations: 6.156 kB / 445.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.2634, allocations: 291.7 kB / 445.6 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.2634, allocations: 89.42 kB / 445.7 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.2635, allocations: 6.891 kB / 445.7 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.587e-05/0.2635, allocations: 2.906 kB / 445.7 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/0.2636, allocations: 16.14 kB / 445.7 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.2636, allocations: 4.516 kB / 445.7 MB, free: 336 kB / 318.1 MB Notification: Performance of sorting global known variables: time 7.79e-05/0.2637, allocations: 123 kB / 445.8 MB, free: 248 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2637, allocations: 0 / 445.8 MB, free: 248 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.264, allocations: 30.02 kB / 445.8 MB, free: 240 kB / 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.0007598/0.2647, allocations: 0.8355 MB / 446.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.265, allocations: 107.3 kB / 446.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.265, allocations: 5.812 kB / 446.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.2651, allocations: 48.06 kB / 446.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.2655, allocations: 38.97 kB / 446.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.2677, allocations: 1.918 MB / 448.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.268, allocations: 0.7058 MB / 449.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.476e-05/0.2681, allocations: 13.62 kB / 449.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.429e-05/0.2682, allocations: 43.38 kB / 449.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2682, allocations: 0 / 449.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.2882, allocations: 3.024 MB / 452.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.536/7.825, allocations: 5.156 kB / 452.6 MB, free: 11.95 MB / 334.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)