Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001568/0.001568, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002149/0.002149, allocations: 202 kB / 18.73 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.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2335/0.2335, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 71.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.353, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002836/0.3559, allocations: 1.642 MB / 0.5321 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.3569, allocations: 0.5869 MB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.319e-05/0.357, allocations: 6.688 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.3571, allocations: 7.875 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.44e-05/0.3572, allocations: 17.22 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/0.3576, allocations: 87.58 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.3578, allocations: 121.4 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.3579, allocations: 29.66 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.71e-05/0.358, allocations: 43.97 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.3581, allocations: 37.28 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.3581, allocations: 11.36 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.052e-05/0.3581, allocations: 7.5 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.175e-05/0.3582, allocations: 27.36 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.472e-05/0.3582, allocations: 48.08 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.3584, allocations: 91.88 kB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3584, allocations: 0 / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3584, allocations: 1.25 kB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.3584, allocations: 0 / 0.5332 GB, free: 11.28 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000664/0.3591, allocations: 411.7 kB / 0.5336 GB, free: 10.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3592, allocations: 10.03 kB / 0.5336 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.909e-05/0.3592, allocations: 40.91 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.3593, allocations: 10.45 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.3596, allocations: 209.9 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.3596, allocations: 3.812 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.3596, allocations: 9.781 kB / 0.5339 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.3599, allocations: 99.89 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3599, allocations: 4 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.3599, allocations: 5.203 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.36, allocations: 2.406 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.3601, allocations: 53.11 kB / 0.534 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.3609, allocations: 392.2 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.3612, allocations: 104.5 kB / 0.5345 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.3614, allocations: 34.84 kB / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.3614, allocations: 1 kB / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.3616, allocations: 99.58 kB / 0.5346 GB, free: 9.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.3616, allocations: 1.375 kB / 0.5346 GB, free: 9.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004497/0.3621, allocations: 146.2 kB / 0.5348 GB, free: 9.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.3621, allocations: 52.78 kB / 0.5348 GB, free: 9.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.3623, allocations: 154.2 kB / 0.535 GB, free: 9.688 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.3623, allocations: 31.08 kB / 0.535 GB, free: 9.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.3624, allocations: 97.59 kB / 0.5351 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.3624, allocations: 26.53 kB / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.752e-05/0.3625, allocations: 28.59 kB / 0.5351 GB, free: 9.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.3627, allocations: 321.6 kB / 0.5354 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3628, allocations: 32.59 kB / 0.5355 GB, free: 9.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.363, allocations: 54.44 kB / 0.5355 GB, free: 9.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.3632, allocations: 80.25 kB / 0.5356 GB, free: 9.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3632, allocations: 0 / 0.5356 GB, free: 9.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003703/0.3636, allocations: 117.9 kB / 0.5357 GB, free: 9.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3636, allocations: 13.42 kB / 0.5357 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3636, allocations: 0 / 0.5357 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.3636, allocations: 1.375 kB / 0.5357 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3637, allocations: 16.41 kB / 0.5357 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.3637, allocations: 3.984 kB / 0.5357 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.014e-05/0.3638, allocations: 21.69 kB / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3639, allocations: 6.688 kB / 0.5358 GB, free: 8.996 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: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001037/0.364, allocations: 116.8 kB / 0.5359 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.364, allocations: 23.95 kB / 0.5359 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.364, allocations: 15.47 kB / 0.5359 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3641, allocations: 5.375 kB / 0.5359 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3641, allocations: 0 / 0.5359 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3641, allocations: 3.984 kB / 0.5359 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005459/0.3646, allocations: 389.9 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3646, allocations: 1.438 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.875e-05/0.3647, allocations: 16.2 kB / 0.5363 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3648, allocations: 1.125 kB / 0.5363 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.3648, allocations: 0 / 0.5363 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3648, allocations: 1.031 kB / 0.5363 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3648, allocations: 400 / 0.5363 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004943/0.3653, allocations: 250.9 kB / 0.5366 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.529e-05/0.3654, allocations: 87.11 kB / 0.5366 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.3654, allocations: 9.047 kB / 0.5367 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.3655, allocations: 15.02 kB / 0.5367 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.3656, allocations: 22.23 kB / 0.5367 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.3656, allocations: 10.33 kB / 0.5367 GB, free: 8.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.902e-05/0.3657, allocations: 105.2 kB / 0.5368 GB, free: 8.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3657, allocations: 1.188 kB / 0.5368 GB, free: 8.047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002398/0.366, allocations: 24.41 kB / 0.5368 GB, free: 8.035 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.0007395/0.3667, allocations: 0.7758 MB / 0.5376 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002922/0.367, allocations: 87.77 kB / 0.5377 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.367, allocations: 1 kB / 0.5377 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.3672, allocations: 43.38 kB / 0.5377 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.3675, allocations: 20.11 kB / 0.5377 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.37, allocations: 1.687 MB / 0.5394 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.3704, allocations: 0.6984 MB / 0.5401 GB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.96e-05/0.3704, allocations: 10.16 kB / 0.5401 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.3705, allocations: 29.36 kB / 0.5401 GB, free: 5.078 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3705, allocations: 3.938 kB / 0.5401 GB, free: 5.074 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.3957, allocations: 2.616 MB / 0.5426 GB, free: 3.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.629/8.025, allocations: 9.188 kB / 0.5427 GB, free: 3.688 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_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_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches