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.001296/0.001296, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001542/0.001542, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.358/1.358, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.2329/0.2329, allocations: 46.95 MB / 361.6 MB, free: 3.93 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.002297/0.002297, allocations: 75.89 kB / 0.4969 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2966, allocations: 66.08 MB / 0.5614 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002809/0.2994, allocations: 1.617 MB / 0.563 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009942/0.3004, allocations: 0.556 MB / 0.5635 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.596e-05/0.3005, allocations: 7.938 kB / 0.5636 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.3006, allocations: 11.86 kB / 0.5636 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-05/0.3006, allocations: 11.88 kB / 0.5636 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.3009, allocations: 95 kB / 0.5637 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.3011, allocations: 111.8 kB / 0.5638 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.3012, allocations: 23.97 kB / 0.5638 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.963e-05/0.3013, allocations: 55.83 kB / 0.5639 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.542e-05/0.3014, allocations: 39.78 kB / 0.5639 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.3014, allocations: 8 kB / 0.5639 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.3014, allocations: 8 kB / 0.5639 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.057e-05/0.3015, allocations: 19.92 kB / 0.5639 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.509e-05/0.3015, allocations: 35.8 kB / 0.564 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.3017, allocations: 91.56 kB / 0.564 GB, free: 1.352 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3017, allocations: 0 / 0.564 GB, free: 1.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3017, allocations: 0 / 0.564 GB, free: 1.352 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.3017, allocations: 0 / 0.564 GB, free: 1.352 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.0006641/0.3023, allocations: 358.7 kB / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3024, allocations: 12.03 kB / 0.5644 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.734e-05/0.3024, allocations: 192 / 0.5644 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.509e-05/0.3024, allocations: 38.75 kB / 0.5644 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.3025, allocations: 8.891 kB / 0.5644 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.3027, allocations: 148.9 kB / 0.5646 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.3027, allocations: 4.359 kB / 0.5646 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.3027, allocations: 16.38 kB / 0.5646 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.303, allocations: 109.5 kB / 0.5647 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.303, allocations: 0 / 0.5647 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.303, allocations: 4 kB / 0.5647 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.303, allocations: 3.938 kB / 0.5647 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.3032, allocations: 47.97 kB / 0.5648 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006329/0.3038, allocations: 347.6 kB / 0.5651 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.3041, allocations: 98.52 kB / 0.5652 GB, free: 60 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.3043, allocations: 36.91 kB / 0.5652 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.3043, allocations: 0 / 0.5652 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002612/0.3045, allocations: 107.3 kB / 0.5653 GB, free: 15.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3045, allocations: 4 kB / 0.5653 GB, free: 15.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.000444/0.305, allocations: 141.5 kB / 0.5655 GB, free: 15.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.305, allocations: 51.41 kB / 0.5655 GB, free: 15.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.3052, allocations: 153.8 kB / 0.5657 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.3052, allocations: 29.7 kB / 0.5657 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.3052, allocations: 100.1 kB / 0.5658 GB, free: 15.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.3053, allocations: 27.92 kB / 0.5658 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.3053, allocations: 25.72 kB / 0.5658 GB, free: 15.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.3055, allocations: 322.8 kB / 0.5661 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3056, allocations: 31.97 kB / 0.5662 GB, free: 14.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.3058, allocations: 57.62 kB / 0.5662 GB, free: 14.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.306, allocations: 69.69 kB / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.306, allocations: 0 / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002907/0.3063, allocations: 125.7 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3063, allocations: 7.984 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3063, allocations: 4.094 kB / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3063, allocations: 7.938 kB / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.362e-05/0.3064, allocations: 11.94 kB / 0.5664 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3064, allocations: 7.984 kB / 0.5665 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.882e-05/0.3065, allocations: 15.98 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.3065, allocations: 4 kB / 0.5665 GB, free: 14.66 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.101e-05/0.3066, allocations: 117.8 kB / 0.5666 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.3066, allocations: 15.84 kB / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.164e-05/0.3067, allocations: 16.72 kB / 0.5666 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3067, allocations: 0 / 0.5666 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3067, allocations: 0 / 0.5666 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3067, allocations: 3.984 kB / 0.5666 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005186/0.3072, allocations: 353.5 kB / 0.567 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3072, allocations: 0 / 0.567 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.3073, allocations: 12 kB / 0.567 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3073, allocations: 3.984 kB / 0.567 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.3073, allocations: 4 kB / 0.567 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3073, allocations: 0 / 0.567 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3073, allocations: 0 / 0.567 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.3078, allocations: 251.3 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.3078, allocations: 15.88 kB / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.853e-05/0.3078, allocations: 0 / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.308, allocations: 19.97 kB / 0.5672 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.308, allocations: 11.98 kB / 0.5673 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.308, allocations: 7.984 kB / 0.5673 GB, free: 13.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.023e-05/0.3081, allocations: 118.9 kB / 0.5674 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3081, allocations: 0 / 0.5674 GB, free: 13.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.3084, allocations: 19.88 kB / 0.5674 GB, free: 13.62 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.0007309/0.3091, allocations: 0.7788 MB / 0.5682 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002873/0.3094, allocations: 75.95 kB / 0.5682 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3094, allocations: 0 / 0.5682 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3095, allocations: 43.91 kB / 0.5683 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.3098, allocations: 24.73 kB / 0.5683 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.3122, allocations: 1.704 MB / 0.57 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.523e-05/0.3123, allocations: 93.25 kB / 0.5701 GB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.01e-05/0.3123, allocations: 4.5 kB / 0.5701 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.234e-05/0.3124, allocations: 31.42 kB / 0.5701 GB, free: 10.74 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3124, allocations: 0 / 0.5701 GB, free: 10.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02313/0.3355, allocations: 2.874 MB / 0.5729 GB, free: 7.977 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.84, allocations: 6.75 kB / 0.5729 GB, free: 7.973 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.638806084054522]