Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_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.001432/0.001433, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2351/0.2351, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 83.84 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3331, allocations: 62.44 MB / 0.5306 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002029/0.3351, allocations: 0.8125 MB / 0.5314 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002028/0.3354, allocations: 48.78 kB / 0.5314 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.927e-05/0.3354, allocations: 1.781 kB / 0.5314 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.3356, allocations: 7.938 kB / 0.5314 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.488e-05/0.3356, allocations: 3.938 kB / 0.5314 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001062/0.3357, allocations: 21.36 kB / 0.5315 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.3358, allocations: 42.16 kB / 0.5315 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3359, allocations: 16.08 kB / 0.5315 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.336, allocations: 11.67 kB / 0.5315 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.569e-05/0.336, allocations: 17.39 kB / 0.5315 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.336, allocations: 4 kB / 0.5315 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-06/0.3361, allocations: 2.656 kB / 0.5315 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.743e-05/0.3361, allocations: 9.281 kB / 0.5316 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.277e-05/0.3361, allocations: 15.66 kB / 0.5316 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.3362, allocations: 41.88 kB / 0.5316 GB, free: 12.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3363, allocations: 0 / 0.5316 GB, free: 12.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3363, allocations: 0 / 0.5316 GB, free: 12.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.3363, allocations: 0 / 0.5316 GB, free: 12.8 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.0004634/0.3367, allocations: 365.6 kB / 0.532 GB, free: 12.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.3368, allocations: 10.94 kB / 0.532 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.679e-05/0.3368, allocations: 30.75 kB / 0.532 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.305e-05/0.3369, allocations: 4.281 kB / 0.532 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.3371, allocations: 181.8 kB / 0.5322 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.3371, allocations: 2.094 kB / 0.5322 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.3372, allocations: 11.55 kB / 0.5322 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.3373, allocations: 52.69 kB / 0.5322 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.3373, allocations: 4.906 kB / 0.5322 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.3373, allocations: 3.984 kB / 0.5322 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3373, allocations: 2.344 kB / 0.5323 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.848e-05/0.3374, allocations: 12.88 kB / 0.5323 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004829/0.3378, allocations: 292.9 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.552e-05/0.3379, allocations: 23.42 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.3379, allocations: 10.55 kB / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.3379, allocations: 0.9375 kB / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.918e-05/0.338, allocations: 50.12 kB / 0.5326 GB, free: 11.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.338, allocations: 4 kB / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001378/0.3382, allocations: 55.3 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.3382, allocations: 52.75 kB / 0.5327 GB, free: 11.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.3384, allocations: 119.6 kB / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.3384, allocations: 25.7 kB / 0.5329 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.011e-05/0.3385, allocations: 94.84 kB / 0.533 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.3385, allocations: 5.234 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.3386, allocations: 17.25 kB / 0.533 GB, free: 11.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3387, allocations: 328.1 kB / 0.5333 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.679e-05/0.3388, allocations: 4.219 kB / 0.5333 GB, free: 10.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.058e-05/0.3388, allocations: 17.47 kB / 0.5333 GB, free: 10.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.37e-05/0.3388, allocations: 30.61 kB / 0.5333 GB, free: 10.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3388, allocations: 0 / 0.5333 GB, free: 10.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.029e-05/0.3389, allocations: 57.44 kB / 0.5334 GB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.339, allocations: 5.312 kB / 0.5334 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.339, allocations: 8.312 kB / 0.5334 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.339, allocations: 0.6562 kB / 0.5334 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.172e-05/0.339, allocations: 3.812 kB / 0.5334 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.339, allocations: 1.312 kB / 0.5334 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.042e-05/0.3391, allocations: 13.3 kB / 0.5334 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-06/0.3391, allocations: 1.125 kB / 0.5334 GB, free: 10.87 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 0.0001543/0.3392, allocations: 117.5 kB / 0.5335 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.3393, allocations: 5.125 kB / 0.5335 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.3393, allocations: 14.05 kB / 0.5336 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3393, allocations: 0 / 0.5336 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3393, allocations: 1.125 kB / 0.5336 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3393, allocations: 4.266 kB / 0.5336 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.3396, allocations: 300.7 kB / 0.5339 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3396, allocations: 5.141 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.031e-05/0.3397, allocations: 1.125 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3397, allocations: 1.094 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.3397, allocations: 3.938 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3397, allocations: 1.219 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3397, allocations: 4 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.3399, allocations: 144.6 kB / 0.534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.3399, allocations: 90.5 kB / 0.5341 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.3399, allocations: 5.312 kB / 0.5341 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.486e-05/0.34, allocations: 3.984 kB / 0.5341 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.34, allocations: 1.438 kB / 0.5341 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.34, allocations: 1.406 kB / 0.5341 GB, free: 10.13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.425e-05/0.3401, allocations: 96.58 kB / 0.5342 GB, free: 10.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3401, allocations: 0 / 0.5342 GB, free: 10.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000209/0.3403, allocations: 5.094 kB / 0.5342 GB, free: 10.05 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.0004614/0.3408, allocations: 0.678 MB / 0.5349 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.557e-05/0.3409, allocations: 26.86 kB / 0.5349 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3409, allocations: 5.344 kB / 0.5349 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.024e-05/0.341, allocations: 5.188 kB / 0.5349 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.3412, allocations: 12.92 kB / 0.5349 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3425, allocations: 1.286 MB / 0.5362 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3429, allocations: 0.6854 MB / 0.5368 GB, free: 7.383 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.508e-05/0.3429, allocations: 2.375 kB / 0.5368 GB, free: 7.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.3429, allocations: 17.81 kB / 0.5369 GB, free: 7.367 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.343, allocations: 4 kB / 0.5369 GB, free: 7.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.368, allocations: 1.541 MB / 0.5384 GB, free: 6.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.771/8.139, allocations: 6.953 kB / 0.5384 GB, free: 6.504 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches