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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001207/0.001207, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 216.9 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 230.5 MB / 258.2 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.92 MB / 361.6 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 79.88 kB / 0.497 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2835, allocations: 66.08 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002711/0.2862, allocations: 1.648 MB / 0.5631 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.2872, allocations: 0.6066 MB / 0.5637 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.916e-05/0.2872, allocations: 0 / 0.5637 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.2873, allocations: 11.88 kB / 0.5637 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.558e-05/0.2874, allocations: 11.86 kB / 0.5637 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.2877, allocations: 95.75 kB / 0.5638 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.2879, allocations: 111.8 kB / 0.5639 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.288, allocations: 31.95 kB / 0.5639 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.012e-05/0.2881, allocations: 47.78 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.094e-05/0.2881, allocations: 35.84 kB / 0.564 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.2882, allocations: 8 kB / 0.564 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.491e-05/0.2882, allocations: 8 kB / 0.564 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.2882, allocations: 23.91 kB / 0.5641 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.552e-05/0.2883, allocations: 43.73 kB / 0.5641 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.2884, allocations: 95.5 kB / 0.5642 GB, free: 1.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2884, allocations: 4 kB / 0.5642 GB, free: 1.523 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2884, allocations: 0 / 0.5642 GB, free: 1.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2884, allocations: 4 kB / 0.5642 GB, free: 1.52 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.0006096/0.289, allocations: 346.8 kB / 0.5645 GB, free: 1.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.2891, allocations: 11.97 kB / 0.5645 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.718e-05/0.2891, allocations: 192 / 0.5645 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.732e-05/0.2891, allocations: 46.73 kB / 0.5646 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.362e-05/0.2891, allocations: 8.891 kB / 0.5646 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.2894, allocations: 146.3 kB / 0.5647 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2894, allocations: 8.375 kB / 0.5647 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.2894, allocations: 8.375 kB / 0.5648 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.2897, allocations: 111.2 kB / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2897, allocations: 0 / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.2897, allocations: 0 / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2897, allocations: 0 / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.2899, allocations: 55.95 kB / 0.5649 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006507/0.2905, allocations: 363.6 kB / 0.5653 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.2909, allocations: 98.55 kB / 0.5654 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.291, allocations: 28.89 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.291, allocations: 0 / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.2912, allocations: 103.3 kB / 0.5655 GB, free: 76 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.2912, allocations: 4 kB / 0.5655 GB, free: 72 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000452/0.2917, allocations: 141.5 kB / 0.5656 GB, free: 15.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.2917, allocations: 51.41 kB / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.2919, allocations: 153.8 kB / 0.5658 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.2919, allocations: 29.7 kB / 0.5658 GB, free: 15.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.633e-05/0.292, allocations: 104.1 kB / 0.5659 GB, free: 15.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.292, allocations: 23.94 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.47e-05/0.292, allocations: 25.7 kB / 0.566 GB, free: 15.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.2922, allocations: 314.8 kB / 0.5663 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.2923, allocations: 39.91 kB / 0.5663 GB, free: 15.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.2925, allocations: 53.69 kB / 0.5664 GB, free: 15.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.2927, allocations: 77.8 kB / 0.5665 GB, free: 15.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2927, allocations: 4 kB / 0.5665 GB, free: 15.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002875/0.293, allocations: 129.4 kB / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.293, allocations: 10.19 kB / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.293, allocations: 0 / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.293, allocations: 0 / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.2931, allocations: 20.02 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2931, allocations: 0 / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.002e-05/0.2932, allocations: 15.98 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.2932, allocations: 4 kB / 0.5666 GB, free: 14.83 MB / 414.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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 9.394e-05/0.2933, allocations: 115.2 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.2933, allocations: 19.84 kB / 0.5668 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.715e-05/0.2933, allocations: 12.7 kB / 0.5668 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.2933, allocations: 4 kB / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.2934, allocations: 7.938 kB / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2934, allocations: 0 / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005134/0.2939, allocations: 361.5 kB / 0.5671 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2939, allocations: 0 / 0.5671 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.929e-05/0.294, allocations: 19.97 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.294, allocations: 0 / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.294, allocations: 0 / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.294, allocations: 4 kB / 0.5672 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.294, allocations: 3.938 kB / 0.5672 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004566/0.2944, allocations: 247.4 kB / 0.5674 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.2944, allocations: 19.86 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.2945, allocations: 0 / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.2946, allocations: 19.98 kB / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.2947, allocations: 11.97 kB / 0.5674 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.2947, allocations: 4 kB / 0.5674 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.374e-05/0.2947, allocations: 122.3 kB / 0.5676 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2947, allocations: 0 / 0.5676 GB, free: 13.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002308/0.295, allocations: 23.88 kB / 0.5676 GB, free: 13.77 MB / 414.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,change.u,booleanPulse.pulseStart) * 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.0007234/0.2957, allocations: 0.7675 MB / 0.5683 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002948/0.296, allocations: 91.95 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.296, allocations: 4.125 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.2961, allocations: 39.98 kB / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.2964, allocations: 15.98 kB / 0.5685 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.299, allocations: 1.7 MB / 0.5701 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.2993, allocations: 0.7001 MB / 0.5708 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.568e-05/0.2994, allocations: 16.48 kB / 0.5708 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.297e-05/0.2994, allocations: 27.44 kB / 0.5709 GB, free: 10.28 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2994, allocations: 0 / 0.5709 GB, free: 10.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.3217, allocations: 2.786 MB / 0.5736 GB, free: 7.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.61, allocations: 14.25 kB / 0.5736 GB, free: 7.586 MB / 414.1 MB " [Timeout remaining time 649] (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 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.357417069026269]