Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Continuous.Examples.OffTimer,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.OffTimer,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_OffTimer",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.00703/0.00703, allocations: 96.56 kB / 15.73 MB, free: 6.031 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.001438/0.001438, allocations: 197 kB / 16.68 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.577/1.577, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.067/1.067, allocations: 135.6 MB / 426.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 75.88 kB / 0.5857 GB, free: 3.246 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4842/0.4862, allocations: 81.02 MB / 0.6648 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.OffTimer): time 0.002645/0.4889, allocations: 1.456 MB / 0.6663 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006611/0.4896, allocations: 443.9 kB / 0.6667 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.07e-05/0.4896, allocations: 1.406 kB / 0.6667 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.294e-05/0.4897, allocations: 3.938 kB / 0.6667 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.407e-05/0.4898, allocations: 5.281 kB / 0.6667 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001486/0.4899, allocations: 35.92 kB / 0.6667 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.063e-05/0.49, allocations: 52.28 kB / 0.6668 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.4901, allocations: 9.219 kB / 0.6668 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.348e-05/0.4902, allocations: 19.67 kB / 0.6668 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.479e-05/0.4903, allocations: 25.7 kB / 0.6668 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.4903, allocations: 3.625 kB / 0.6668 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.4903, allocations: 5.312 kB / 0.6668 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.4903, allocations: 13.2 kB / 0.6668 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.504e-05/0.4904, allocations: 26.72 kB / 0.6669 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.4905, allocations: 44.55 kB / 0.6669 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.4905, allocations: 0 / 0.6669 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.192e-06/0.4905, allocations: 0 / 0.6669 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.4905, allocations: 0 / 0.6669 GB, free: 5.219 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004774/0.491, allocations: 366.2 kB / 0.6673 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.491, allocations: 8.688 kB / 0.6673 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.12e-05/0.4911, allocations: 37.47 kB / 0.6673 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.4911, allocations: 11.97 kB / 0.6673 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.4912, allocations: 165.5 kB / 0.6675 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.4913, allocations: 7.125 kB / 0.6675 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.4913, allocations: 5.219 kB / 0.6675 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.4914, allocations: 62.39 kB / 0.6676 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.567e-06/0.4914, allocations: 1.406 kB / 0.6676 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.4914, allocations: 0 / 0.6676 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.4914, allocations: 5.438 kB / 0.6676 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.591e-05/0.4915, allocations: 25.3 kB / 0.6676 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004487/0.492, allocations: 302.4 kB / 0.6679 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.4921, allocations: 52.88 kB / 0.6679 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.101e-05/0.4921, allocations: 28.03 kB / 0.6679 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.4922, allocations: 5.438 kB / 0.668 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001691/0.4923, allocations: 76.91 kB / 0.668 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.472e-06/0.4923, allocations: 3.938 kB / 0.668 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002364/0.4926, allocations: 100.2 kB / 0.6681 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.4926, allocations: 58.14 kB / 0.6682 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.772e-05/0.4927, allocations: 100.9 kB / 0.6683 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.4927, allocations: 31.05 kB / 0.6683 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.4928, allocations: 93.33 kB / 0.6684 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.4928, allocations: 15.88 kB / 0.6684 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.67e-05/0.4928, allocations: 29.42 kB / 0.6684 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.364e-05/0.4929, allocations: 321.8 kB / 0.6687 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.641e-05/0.4929, allocations: 17.05 kB / 0.6688 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.251e-05/0.493, allocations: 49.2 kB / 0.6688 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.231e-05/0.4931, allocations: 74.38 kB / 0.6689 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.4931, allocations: 0 / 0.6689 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000139/0.4932, allocations: 94.97 kB / 0.669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.4933, allocations: 4.875 kB / 0.669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4933, allocations: 1.281 kB / 0.669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.4933, allocations: 1.406 kB / 0.669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.078e-05/0.4934, allocations: 16.89 kB / 0.669 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.4934, allocations: 1.344 kB / 0.669 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.6e-05/0.4935, allocations: 16.38 kB / 0.669 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.4935, allocations: 7.438 kB / 0.669 GB, free: 3.137 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.326e-05/0.4936, allocations: 118.5 kB / 0.6691 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.4936, allocations: 10.19 kB / 0.6691 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.957e-05/0.4936, allocations: 7.969 kB / 0.6691 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.4936, allocations: 1.406 kB / 0.6691 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4936, allocations: 5.5 kB / 0.6692 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.4936, allocations: 0 / 0.6692 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003428/0.494, allocations: 362.8 kB / 0.6695 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.494, allocations: 480 / 0.6695 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.852e-05/0.494, allocations: 12.34 kB / 0.6695 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.494, allocations: 0 / 0.6695 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.4941, allocations: 5.297 kB / 0.6695 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4941, allocations: 5.156 kB / 0.6695 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.4941, allocations: 3.938 kB / 0.6695 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.4942, allocations: 179.8 kB / 0.6697 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.446e-05/0.4942, allocations: 90.14 kB / 0.6698 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.4943, allocations: 1.156 kB / 0.6698 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-05/0.4943, allocations: 8 kB / 0.6698 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.4944, allocations: 11.77 kB / 0.6698 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.4944, allocations: 5.719 kB / 0.6698 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.99e-05/0.4945, allocations: 88.31 kB / 0.6699 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4945, allocations: 0 / 0.6699 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002417/0.4947, allocations: 15.25 kB / 0.6699 GB, free: 2.258 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * 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.000338/0.495, allocations: 0.7083 MB / 0.6706 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001802/0.4952, allocations: 56.33 kB / 0.6707 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4952, allocations: 0 / 0.6707 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.872e-05/0.4953, allocations: 26.36 kB / 0.6707 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.4956, allocations: 18.66 kB / 0.6707 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.4967, allocations: 1.387 MB / 0.672 GB, free: 196 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.4971, allocations: 0.6868 MB / 0.6727 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.991e-05/0.4971, allocations: 8.016 kB / 0.6727 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.4971, allocations: 15.03 kB / 0.6727 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.4972, allocations: 0 / 0.6727 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.5239, allocations: 1.747 MB / 0.6744 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.853/8.377, allocations: 11.34 kB / 0.6745 GB, free: 14.51 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_Continuous_Examples_OffTimer.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe 2>&1)