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.001672/0.001672, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001992/0.001992, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2153/0.2153, allocations: 46.13 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002195, allocations: 83.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3367, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002689/0.3395, allocations: 1.643 MB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009963/0.3405, allocations: 0.5874 MB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.902e-05/0.3406, allocations: 1.562 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.3407, allocations: 13.48 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.578e-05/0.3407, allocations: 13.36 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.3411, allocations: 86.77 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.3412, allocations: 113.2 kB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3414, allocations: 36.53 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.927e-05/0.3414, allocations: 45.91 kB / 0.5331 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.312e-05/0.3415, allocations: 43.69 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.3415, allocations: 8.062 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.676e-05/0.3416, allocations: 7.469 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.3416, allocations: 22.48 kB / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.132e-05/0.3416, allocations: 37.42 kB / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.3418, allocations: 96.83 kB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3418, allocations: 0 / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3418, allocations: 0 / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.3418, allocations: 4 kB / 0.5333 GB, free: 11.23 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.0006462/0.3425, allocations: 416.5 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.3425, allocations: 8.25 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.125e-05/0.3426, allocations: 37.48 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.3426, allocations: 14.39 kB / 0.5337 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.3429, allocations: 205.9 kB / 0.5339 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.3429, allocations: 7.125 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.3429, allocations: 9.812 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002682/0.3432, allocations: 106.1 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3432, allocations: 1.375 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3432, allocations: 4 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.443e-06/0.3432, allocations: 2.75 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.3434, allocations: 52.78 kB / 0.5341 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007458/0.3442, allocations: 391.7 kB / 0.5345 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.3445, allocations: 100.1 kB / 0.5346 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.3447, allocations: 40.14 kB / 0.5346 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.3447, allocations: 1.375 kB / 0.5346 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.345, allocations: 94.92 kB / 0.5347 GB, free: 9.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.345, allocations: 1.375 kB / 0.5347 GB, free: 9.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005033/0.3455, allocations: 151 kB / 0.5349 GB, free: 9.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.3456, allocations: 52.72 kB / 0.5349 GB, free: 9.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.3457, allocations: 153.2 kB / 0.5351 GB, free: 9.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.3458, allocations: 26.73 kB / 0.5351 GB, free: 9.598 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.714e-05/0.3459, allocations: 104.9 kB / 0.5352 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.3459, allocations: 18.48 kB / 0.5352 GB, free: 9.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/0.346, allocations: 33.27 kB / 0.5352 GB, free: 9.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.3462, allocations: 325.7 kB / 0.5355 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.3463, allocations: 36.3 kB / 0.5356 GB, free: 9.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3464, allocations: 54.03 kB / 0.5356 GB, free: 9.074 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.3467, allocations: 72.7 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3467, allocations: 3.938 kB / 0.5357 GB, free: 9.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002935/0.347, allocations: 122.2 kB / 0.5358 GB, free: 8.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.347, allocations: 9.75 kB / 0.5358 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.347, allocations: 0 / 0.5358 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.347, allocations: 1.25 kB / 0.5358 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.3472, allocations: 19.64 kB / 0.5359 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.3472, allocations: 1.188 kB / 0.5359 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.481e-05/0.3473, allocations: 21.19 kB / 0.5359 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.3473, allocations: 2.375 kB / 0.5359 GB, free: 8.938 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.0001125/0.3474, allocations: 121.5 kB / 0.536 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.3474, allocations: 16.28 kB / 0.536 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.45e-05/0.3475, allocations: 15.08 kB / 0.536 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3475, allocations: 5.062 kB / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3475, allocations: 0 / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3475, allocations: 1.125 kB / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000553/0.3481, allocations: 393.9 kB / 0.5364 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3481, allocations: 0 / 0.5364 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.557e-05/0.3482, allocations: 12.67 kB / 0.5364 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3482, allocations: 1 kB / 0.5364 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.3482, allocations: 5.031 kB / 0.5364 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3482, allocations: 9 kB / 0.5364 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3482, allocations: 0 / 0.5364 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00048/0.3487, allocations: 258.6 kB / 0.5367 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.3488, allocations: 86.42 kB / 0.5368 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.3488, allocations: 1.625 kB / 0.5368 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.3489, allocations: 19.34 kB / 0.5368 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.349, allocations: 13.48 kB / 0.5368 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.349, allocations: 2.75 kB / 0.5368 GB, free: 8.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.841e-05/0.3491, allocations: 117.2 kB / 0.5369 GB, free: 7.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3491, allocations: 3.938 kB / 0.5369 GB, free: 7.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.3493, allocations: 21.16 kB / 0.5369 GB, free: 7.977 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.0007745/0.3501, allocations: 0.776 MB / 0.5377 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003021/0.3504, allocations: 83.78 kB / 0.5378 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3505, allocations: 0 / 0.5378 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.3506, allocations: 43.42 kB / 0.5378 GB, free: 7.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003076/0.3509, allocations: 20.61 kB / 0.5378 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.3534, allocations: 1.698 MB / 0.5395 GB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3537, allocations: 0.6982 MB / 0.5402 GB, free: 5.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.75e-05/0.3538, allocations: 10.42 kB / 0.5402 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.3538, allocations: 33.16 kB / 0.5402 GB, free: 5.012 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3538, allocations: 0 / 0.5402 GB, free: 5.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02565/0.3795, allocations: 2.6 MB / 0.5427 GB, free: 3.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/8.168, allocations: 9.375 kB / 0.5428 GB, free: 3.633 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/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