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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008133/0.0008133, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007799/0.0007799, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9548/0.9548, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.3138/0.3138, allocations: 34.24 MB / 294.8 MB, free: 0.6992 MB / 266.7 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 442.1 MB, free: 1.598 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.021e-05/2.207e-05, allocations: 2.281 kB / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001649/0.001671, allocations: 0.821 MB / 443 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000199/0.00187, allocations: 43.88 kB / 443 MB, free: 0.7305 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.825e-05/0.001938, allocations: 7.938 kB / 443 MB, free: 0.7227 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.002054, allocations: 3.938 kB / 443 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.554e-05/0.002069, allocations: 0 / 443 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001243/0.002194, allocations: 19.86 kB / 443 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.002295, allocations: 35.86 kB / 443.1 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.002404, allocations: 23.97 kB / 443.1 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.168e-05/0.002446, allocations: 11.98 kB / 443.1 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.00249, allocations: 11.98 kB / 443.1 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.002511, allocations: 7.938 kB / 443.1 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-06/0.002519, allocations: 0 / 443.1 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.002541, allocations: 11.98 kB / 443.1 MB, free: 0.5977 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.325e-05/0.002564, allocations: 8 kB / 443.1 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.002675, allocations: 35.88 kB / 443.2 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.002677, allocations: 0 / 443.2 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.002678, allocations: 0 / 443.2 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.002683, allocations: 0 / 443.2 MB, free: 0.5547 MB / 410.7 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.0004093/0.003092, allocations: 279.1 kB / 443.4 MB, free: 252 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.003142, allocations: 12.03 kB / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.758e-05/0.003179, allocations: 38.75 kB / 443.5 MB, free: 192 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.003212, allocations: 12.88 kB / 443.5 MB, free: 180 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.003431, allocations: 129.6 kB / 443.6 MB, free: 24 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.003441, allocations: 4.375 kB / 443.6 MB, free: 20 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.00346, allocations: 4.375 kB / 443.6 MB, free: 16 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2056/0.2091, allocations: 48.89 kB / 443.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2091, allocations: 3.562 kB / 443.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.2091, allocations: 384 / 443.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.2091, allocations: 2.438 kB / 443.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.416e-05/0.2092, allocations: 18.2 kB / 443.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004747/0.2097, allocations: 256.2 kB / 444 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.518e-05/0.2097, allocations: 21.92 kB / 444 MB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.488e-05/0.2097, allocations: 13.14 kB / 444 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.2098, allocations: 0 / 444 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.82e-05/0.2098, allocations: 48.59 kB / 444 MB, free: 43.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2098, allocations: 0 / 444 MB, free: 43.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001396/0.21, allocations: 59.33 kB / 444.1 MB, free: 43.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.21, allocations: 56.16 kB / 444.2 MB, free: 43.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.651e-05/0.2101, allocations: 114.3 kB / 444.3 MB, free: 43.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.176e-06/0.2101, allocations: 26.89 kB / 444.3 MB, free: 43.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.274e-05/0.2101, allocations: 92.8 kB / 444.4 MB, free: 43.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.363e-05/0.2101, allocations: 12.45 kB / 444.4 MB, free: 43.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.2101, allocations: 17.06 kB / 444.4 MB, free: 43.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.52e-05/0.2102, allocations: 318.9 kB / 444.7 MB, free: 43.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.43e-05/0.2102, allocations: 7.125 kB / 444.7 MB, free: 43.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.064e-05/0.2102, allocations: 24.95 kB / 444.8 MB, free: 43.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.28e-05/0.2102, allocations: 22.78 kB / 444.8 MB, free: 43.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2102, allocations: 0 / 444.8 MB, free: 43.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.796e-05/0.2103, allocations: 59.59 kB / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2103, allocations: 5.094 kB / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2103, allocations: 0 / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.2103, allocations: 3.938 kB / 444.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.885e-05/0.2104, allocations: 11.78 kB / 444.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2104, allocations: 0 / 444.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.548e-05/0.2104, allocations: 7.781 kB / 444.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.2104, allocations: 2.844 kB / 444.9 MB, free: 43.26 MB / 410.7 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 4.588e-05/0.2105, allocations: 112.5 kB / 445 MB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.2105, allocations: 7.609 kB / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.148e-05/0.2105, allocations: 8.594 kB / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2105, allocations: 3.938 kB / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2105, allocations: 0.6562 kB / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2105, allocations: 0 / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.2107, allocations: 267.8 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2107, allocations: 1.312 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.937e-05/0.2107, allocations: 7.312 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2107, allocations: 0.9375 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.2107, allocations: 2.625 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2107, allocations: 3 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2107, allocations: 0 / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.498e-05/0.2108, allocations: 159.3 kB / 445.4 MB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.2108, allocations: 6.719 kB / 445.4 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.2108, allocations: 5.125 kB / 445.4 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.399e-05/0.2109, allocations: 5.344 kB / 445.5 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/0.2109, allocations: 2.75 kB / 445.5 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.2109, allocations: 0 / 445.5 MB, free: 42.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.884e-05/0.2109, allocations: 101.8 kB / 445.6 MB, free: 42.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2109, allocations: 0 / 445.6 MB, free: 42.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001467/0.2111, allocations: 2.781 kB / 445.6 MB, free: 42.66 MB / 410.7 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.0001807/0.2113, allocations: 0.6856 MB / 446.2 MB, free: 41.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.774e-05/0.2113, allocations: 17.64 kB / 446.3 MB, free: 41.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2113, allocations: 0 / 446.3 MB, free: 41.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.594e-05/0.2114, allocations: 13.12 kB / 446.3 MB, free: 41.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.2116, allocations: 6.594 kB / 446.3 MB, free: 41.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006701/0.2122, allocations: 1.283 MB / 447.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.883e-05/0.2123, allocations: 75.47 kB / 447.6 MB, free: 40.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.073e-05/0.2123, allocations: 2.719 kB / 447.6 MB, free: 40.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.2123, allocations: 18.42 kB / 447.7 MB, free: 40.75 MB / 410.7 MB Notification: Performance of SimCode: time 6.52e-07/0.2123, allocations: 0.6562 kB / 447.7 MB, free: 40.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.2298, allocations: 2.235 MB / 449.9 MB, free: 39.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.564/6.794, allocations: 5.812 kB / 449.9 MB, free: 39.85 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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: 8.880141175352037]