Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.001302/0.001302, allocations: 114 kB / 20.44 MB, free: 1.469 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.00148/0.00148, allocations: 213.4 kB / 23.74 MB, free: 4.695 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.397/1.397, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 59.89 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2429, allocations: 53.41 MB / 431.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002756/0.2457, allocations: 1.526 MB / 432.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003862/0.2461, allocations: 139.5 kB / 432.8 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.331e-05/0.2462, allocations: 3.938 kB / 432.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.597e-05/0.2462, allocations: 11.92 kB / 432.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.2463, allocations: 4 kB / 432.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.2465, allocations: 35.84 kB / 432.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.678e-05/0.2466, allocations: 27.92 kB / 432.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.884e-05/0.2467, allocations: 11.98 kB / 432.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.031e-05/0.2468, allocations: 15.88 kB / 432.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.203e-05/0.2468, allocations: 15.86 kB / 433 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.2468, allocations: 0 / 433 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.222e-05/0.2468, allocations: 4 kB / 433 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.2469, allocations: 11.98 kB / 433 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.007e-05/0.2469, allocations: 19.81 kB / 433 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.247, allocations: 44.19 kB / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.247, allocations: 0 / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.247, allocations: 0 / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.247, allocations: 0 / 433 MB, free: 4.867 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000415/0.2474, allocations: 286.1 kB / 433.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2475, allocations: 8.031 kB / 433.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.2475, allocations: 34.75 kB / 433.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.511e-05/0.2475, allocations: 12.83 kB / 433.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.2477, allocations: 134.4 kB / 433.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.2477, allocations: 4.359 kB / 433.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.2478, allocations: 4.375 kB / 433.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.248, allocations: 93.61 kB / 433.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.248, allocations: 7.875 kB / 433.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.248, allocations: 0 / 433.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.248, allocations: 4 kB / 433.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.713e-05/0.2481, allocations: 23.97 kB / 433.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002968/0.2484, allocations: 228.8 kB / 433.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.348e-05/0.2485, allocations: 41.16 kB / 433.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.502e-05/0.2485, allocations: 21.77 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.2485, allocations: 4 kB / 433.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.2485, allocations: 34.5 kB / 434 MB, free: 3.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.2485, allocations: 0 / 434 MB, free: 3.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.000223/0.2488, allocations: 65.83 kB / 434 MB, free: 3.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.2488, allocations: 81.14 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.249, allocations: 141.2 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.249, allocations: 25.7 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.846e-05/0.249, allocations: 80.14 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.006e-05/0.249, allocations: 4 kB / 434.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.2491, allocations: 17.7 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2492, allocations: 318.8 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.403e-05/0.2492, allocations: 8 kB / 434.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.292e-05/0.2493, allocations: 17.7 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.191e-05/0.2494, allocations: 33.64 kB / 434.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.2494, allocations: 7.938 kB / 434.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001085/0.2495, allocations: 53.7 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.2495, allocations: 11.94 kB / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.2495, allocations: 0 / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.2495, allocations: 0 / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.224e-05/0.2496, allocations: 11.92 kB / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.2496, allocations: 0 / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.504e-05/0.2496, allocations: 4 kB / 434.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-06/0.2496, allocations: 0 / 434.8 MB, free: 2.84 MB / 334.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: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.189e-05/0.2497, allocations: 113.8 kB / 434.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.095e-05/0.2497, allocations: 49.64 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.732e-05/0.2498, allocations: 11.77 kB / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.2498, allocations: 0 / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2498, allocations: 3.938 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2498, allocations: 0 / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.25, allocations: 148.6 kB / 435.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.25, allocations: 0 / 435.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.542e-05/0.25, allocations: 4 kB / 435.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.25, allocations: 0 / 435.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.25, allocations: 0 / 435.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.25, allocations: 11.97 kB / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.25, allocations: 0 / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/0.2502, allocations: 156.3 kB / 435.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/0.2502, allocations: 7.953 kB / 435.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.2502, allocations: 7.984 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.2503, allocations: 4.031 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.201e-05/0.2503, allocations: 0 / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-06/0.2503, allocations: 4 kB / 435.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.132e-05/0.2504, allocations: 103.2 kB / 435.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2504, allocations: 0 / 435.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.2506, allocations: 4 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004952/0.2511, allocations: 0.6898 MB / 436.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.2512, allocations: 23.92 kB / 436.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2512, allocations: 0 / 436.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.501e-05/0.2512, allocations: 11.98 kB / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.2515, allocations: 12.34 kB / 436.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.2528, allocations: 1.276 MB / 437.5 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.2531, allocations: 0.6807 MB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.271e-05/0.2531, allocations: 4.031 kB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.878e-05/0.2532, allocations: 19.42 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2532, allocations: 0 / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.2805, allocations: 1.482 MB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.85, allocations: 15.86 kB / 439.7 MB, free: 13.89 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.176975429989398]