Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008301/0.0008301, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9312/0.9312, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7321/0.7321, allocations: 154.6 MB / 413.8 MB, free: 0.7773 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 0.6181 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.72e-05/2.993e-05, allocations: 6.219 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003147/0.003177, allocations: 1.789 MB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.004216, allocations: 0.5494 MB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.004332, allocations: 7.938 kB / 0.6204 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.004472, allocations: 27.67 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.28e-05/0.004535, allocations: 23.73 kB / 0.6205 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.004751, allocations: 67.8 kB / 0.6205 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.004937, allocations: 179.4 kB / 0.6207 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.005078, allocations: 37.78 kB / 0.6207 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.005178, allocations: 79.75 kB / 0.6208 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.993e-05/0.005238, allocations: 39.88 kB / 0.6208 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/0.005268, allocations: 12 kB / 0.6209 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.363e-05/0.005282, allocations: 8 kB / 0.6209 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.005316, allocations: 35.83 kB / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.735e-05/0.005364, allocations: 35.86 kB / 0.6209 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.005556, allocations: 139.4 kB / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.005561, allocations: 0 / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.174e-06/0.005563, allocations: 0 / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.005569, allocations: 0 / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006565/0.006225, allocations: 431.1 kB / 0.6215 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.006274, allocations: 8.031 kB / 0.6215 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.288e-05/0.006317, allocations: 46.73 kB / 0.6215 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.79e-05/0.006375, allocations: 24.8 kB / 0.6216 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.006708, allocations: 173.4 kB / 0.6217 GB, free: 9.867 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.006728, allocations: 16.38 kB / 0.6217 GB, free: 9.852 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.006757, allocations: 12.38 kB / 0.6217 GB, free: 9.84 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002341/0.006991, allocations: 141.7 kB / 0.6219 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.006999, allocations: 192 / 0.6219 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.007016, allocations: 16.11 kB / 0.6219 GB, free: 9.668 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.007022, allocations: 3.938 kB / 0.6219 GB, free: 9.664 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.007169, allocations: 67.89 kB / 0.622 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006673/0.007836, allocations: 0.6879 MB / 0.6226 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.007938, allocations: 46.55 kB / 0.6227 GB, free: 8.797 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.679e-05/0.007995, allocations: 32.83 kB / 0.6227 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.008015, allocations: 3.938 kB / 0.6227 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.008231, allocations: 122.7 kB / 0.6228 GB, free: 8.613 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=11): time 1.904e-06/0.008233, allocations: 0 / 0.6228 GB, free: 8.613 MB / 0.5886 GB Notification: Performance of matching and sorting (n=11): time 0.0003233/0.008557, allocations: 177.3 kB / 0.623 GB, free: 8.434 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.008618, allocations: 136.5 kB / 0.6231 GB, free: 8.27 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.008746, allocations: 192.3 kB / 0.6233 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.008762, allocations: 29.7 kB / 0.6233 GB, free: 8.039 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.008829, allocations: 132.1 kB / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.008855, allocations: 39.67 kB / 0.6235 GB, free: 7.867 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.008903, allocations: 41.7 kB / 0.6235 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.6e-05/0.008989, allocations: 335.1 kB / 0.6239 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.22e-05/0.009061, allocations: 35.97 kB / 0.6239 GB, free: 7.449 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.009165, allocations: 142.5 kB / 0.624 GB, free: 7.258 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.009361, allocations: 202.4 kB / 0.6242 GB, free: 7.008 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.009365, allocations: 3.938 kB / 0.6242 GB, free: 7.004 MB / 0.5886 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003694/0.009735, allocations: 209.1 kB / 0.6244 GB, free: 6.793 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.009752, allocations: 8.5 kB / 0.6244 GB, free: 6.785 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.009759, allocations: 11.94 kB / 0.6245 GB, free: 6.773 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.009775, allocations: 4 kB / 0.6245 GB, free: 6.77 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.728e-05/0.009852, allocations: 35.91 kB / 0.6245 GB, free: 6.734 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.009861, allocations: 8 kB / 0.6245 GB, free: 6.727 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.439e-05/0.009935, allocations: 27.88 kB / 0.6245 GB, free: 6.699 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.009944, allocations: 8 kB / 0.6245 GB, free: 6.691 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.752e-05/0.01003, allocations: 138.7 kB / 0.6247 GB, free: 6.547 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.965e-05/0.01005, allocations: 19.91 kB / 0.6247 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.01009, allocations: 17.47 kB / 0.6247 GB, free: 6.512 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.01009, allocations: 4 kB / 0.6247 GB, free: 6.508 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.0101, allocations: 4.25 kB / 0.6247 GB, free: 6.504 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.0101, allocations: 7.922 kB / 0.6247 GB, free: 6.496 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005789/0.01068, allocations: 492.5 kB / 0.6252 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01068, allocations: 0 / 0.6252 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.795e-05/0.01075, allocations: 15.98 kB / 0.6252 GB, free: 5.949 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.01076, allocations: 0 / 0.6252 GB, free: 5.949 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.01077, allocations: 12 kB / 0.6252 GB, free: 5.938 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.01077, allocations: 0 / 0.6252 GB, free: 5.938 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.01077, allocations: 0 / 0.6252 GB, free: 5.938 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.01109, allocations: 352.5 kB / 0.6255 GB, free: 5.57 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.75e-05/0.01111, allocations: 28 kB / 0.6256 GB, free: 5.543 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.01113, allocations: 7.969 kB / 0.6256 GB, free: 5.535 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.625e-05/0.01122, allocations: 15.98 kB / 0.6256 GB, free: 5.52 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.01127, allocations: 15.86 kB / 0.6256 GB, free: 5.504 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-06/0.01127, allocations: 8 kB / 0.6256 GB, free: 5.496 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.674e-05/0.01136, allocations: 151.1 kB / 0.6258 GB, free: 5.348 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01136, allocations: 3.938 kB / 0.6258 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002225/0.01158, allocations: 31.98 kB / 0.6258 GB, free: 5.312 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005035/0.01209, allocations: 0.8839 MB / 0.6267 GB, free: 4.395 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002042/0.01229, allocations: 111.8 kB / 0.6268 GB, free: 4.285 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.01229, allocations: 0 / 0.6268 GB, free: 4.285 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.06e-05/0.01237, allocations: 47.91 kB / 0.6268 GB, free: 4.238 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.01275, allocations: 73.34 kB / 0.6269 GB, free: 4.172 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.01463, allocations: 2.235 MB / 0.6291 GB, free: 1.746 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.121e-05/0.0147, allocations: 112.2 kB / 0.6292 GB, free: 1.617 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 6.648e-05/0.01477, allocations: 21.48 kB / 0.6292 GB, free: 1.598 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.01484, allocations: 52.48 kB / 0.6292 GB, free: 1.547 MB / 0.5886 GB Notification: Performance of SimCode: time 1.022e-06/0.01484, allocations: 0 / 0.6292 GB, free: 1.547 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.03676, allocations: 4.901 MB / 0.634 GB, free: 12.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/6.852, allocations: 9.031 kB / 0.634 GB, free: 12.85 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.791299300268292] Failed to read output from testmodel.py, exit status != 0: 6.935512755997479 6.949633164 6.940858759 Calling exit ...