Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001478/0.001478, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.232/0.232, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 79.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3732, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002319/0.3756, allocations: 0.8173 MB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002195/0.3758, allocations: 44.69 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.195e-05/0.3759, allocations: 5.375 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.376, allocations: 3.938 kB / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.858e-05/0.3761, allocations: 13.69 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001277/0.3762, allocations: 19.48 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.3763, allocations: 42.47 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.3765, allocations: 15.2 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.932e-05/0.3765, allocations: 15.52 kB / 0.5315 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.824e-05/0.3765, allocations: 11.56 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.3766, allocations: 1.75 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.131e-05/0.3766, allocations: 3.562 kB / 0.5316 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.3766, allocations: 9.797 kB / 0.5316 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.3766, allocations: 23.42 kB / 0.5316 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.3768, allocations: 37.78 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3768, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3768, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.3768, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004985/0.3773, allocations: 352.9 kB / 0.532 GB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3774, allocations: 10.44 kB / 0.532 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.38e-05/0.3774, allocations: 36.02 kB / 0.532 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.487e-05/0.3774, allocations: 3.406 kB / 0.532 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.3777, allocations: 186.9 kB / 0.5322 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.3777, allocations: 7.109 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.3777, allocations: 7 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.3779, allocations: 44.62 kB / 0.5322 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3779, allocations: 3.938 kB / 0.5322 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.3779, allocations: 5.812 kB / 0.5322 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.3779, allocations: 0 / 0.5322 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.93e-05/0.3779, allocations: 17.39 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.3785, allocations: 299.7 kB / 0.5326 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.455e-05/0.3786, allocations: 20.42 kB / 0.5326 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.204e-05/0.3786, allocations: 12.77 kB / 0.5326 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.3786, allocations: 0 / 0.5326 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.374e-05/0.3787, allocations: 49.47 kB / 0.5326 GB, free: 11.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 3.436e-06/0.3787, allocations: 4 kB / 0.5326 GB, free: 11.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001556/0.3789, allocations: 55.2 kB / 0.5327 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.3789, allocations: 51.41 kB / 0.5327 GB, free: 11.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.379, allocations: 122.1 kB / 0.5329 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.3791, allocations: 25.7 kB / 0.5329 GB, free: 11.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.776e-05/0.3791, allocations: 95.58 kB / 0.533 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.299e-05/0.3792, allocations: 3.953 kB / 0.533 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-05/0.3792, allocations: 17.28 kB / 0.533 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3794, allocations: 330.7 kB / 0.5333 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.504e-05/0.3794, allocations: 3.5 kB / 0.5333 GB, free: 10.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.648e-05/0.3794, allocations: 21.34 kB / 0.5333 GB, free: 10.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.89e-05/0.3795, allocations: 24.28 kB / 0.5333 GB, free: 10.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3795, allocations: 3.984 kB / 0.5334 GB, free: 10.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.695e-05/0.3795, allocations: 48.62 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3796, allocations: 5.906 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.3796, allocations: 8.016 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3796, allocations: 1.062 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.3796, allocations: 6.891 kB / 0.5334 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3797, allocations: 1.156 kB / 0.5334 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.602e-05/0.3797, allocations: 14.17 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.3797, allocations: 1.156 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.568e-05/0.3798, allocations: 108.2 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.084e-05/0.3798, allocations: 3.188 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.615e-05/0.3798, allocations: 8.719 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3799, allocations: 5.031 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3799, allocations: 7.922 kB / 0.5336 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3799, allocations: 5.406 kB / 0.5336 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.3802, allocations: 295.6 kB / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3802, allocations: 0.8438 kB / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.977e-05/0.3802, allocations: 2.406 kB / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3803, allocations: 0 / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3803, allocations: 9.297 kB / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3803, allocations: 0 / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3803, allocations: 0 / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.3804, allocations: 152.4 kB / 0.534 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.753e-05/0.3805, allocations: 83.03 kB / 0.5341 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.3805, allocations: 7.938 kB / 0.5341 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.623e-05/0.3806, allocations: 5.344 kB / 0.5341 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.3806, allocations: 5.453 kB / 0.5341 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3806, allocations: 2.156 kB / 0.5341 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.956e-05/0.3807, allocations: 95.3 kB / 0.5342 GB, free: 9.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3807, allocations: 5.406 kB / 0.5342 GB, free: 9.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002128/0.3809, allocations: 8.125 kB / 0.5342 GB, free: 9.852 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004569/0.3814, allocations: 0.6797 MB / 0.5349 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.316e-05/0.3815, allocations: 23.23 kB / 0.5349 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3815, allocations: 128 / 0.5349 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.522e-05/0.3815, allocations: 13.66 kB / 0.5349 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.3818, allocations: 16.98 kB / 0.5349 GB, free: 9.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.3831, allocations: 1.273 MB / 0.5362 GB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.3834, allocations: 0.6849 MB / 0.5368 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.34e-05/0.3834, allocations: 3.062 kB / 0.5368 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.3835, allocations: 14.09 kB / 0.5369 GB, free: 7.184 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3835, allocations: 0 / 0.5369 GB, free: 7.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.4093, allocations: 1.559 MB / 0.5384 GB, free: 6.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.661/9.071, allocations: 19.64 kB / 0.5384 GB, free: 6.309 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1)