Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 111.1 kB / 20.44 MB, free: 1.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002334/0.002334, allocations: 206 kB / 23.72 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.394/1.394, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 43.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2435, allocations: 53.37 MB / 431.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002807/0.2463, allocations: 1.534 MB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003776/0.2467, allocations: 139.5 kB / 432.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.947e-05/0.2467, allocations: 0 / 432.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.592e-05/0.2468, allocations: 3.938 kB / 432.7 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.2469, allocations: 11.88 kB / 432.8 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.2471, allocations: 43.83 kB / 432.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.178e-05/0.2472, allocations: 27.92 kB / 432.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.201e-05/0.2473, allocations: 16 kB / 432.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.729e-05/0.2474, allocations: 19.91 kB / 432.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.549e-05/0.2474, allocations: 19.86 kB / 432.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.2474, allocations: 0 / 432.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.2474, allocations: 4 kB / 432.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.633e-05/0.2475, allocations: 8 kB / 432.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.2475, allocations: 15.88 kB / 432.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.2476, allocations: 53.36 kB / 433 MB, free: 4.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2476, allocations: 4 kB / 433 MB, free: 4.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2476, allocations: 0 / 433 MB, free: 4.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2476, allocations: 0 / 433 MB, free: 4.781 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004366/0.2481, allocations: 302.1 kB / 433.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2481, allocations: 8.031 kB / 433.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.2481, allocations: 30.75 kB / 433.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.622e-05/0.2482, allocations: 8.891 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.2484, allocations: 134.4 kB / 433.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.2484, allocations: 4.359 kB / 433.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.2484, allocations: 8.375 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.2487, allocations: 121.5 kB / 433.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2487, allocations: 3.938 kB / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-06/0.2487, allocations: 0 / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2487, allocations: 0 / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.846e-05/0.2488, allocations: 23.92 kB / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002872/0.2491, allocations: 224.8 kB / 433.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001697/0.2492, allocations: 65.08 kB / 433.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/0.2493, allocations: 33.77 kB / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.2493, allocations: 0 / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.2493, allocations: 30.56 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.82e-07/0.2493, allocations: 0 / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002317/0.2496, allocations: 81.64 kB / 434 MB, free: 3.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.2496, allocations: 89.14 kB / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.2498, allocations: 126.1 kB / 434.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.2498, allocations: 33.69 kB / 434.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.09e-05/0.2498, allocations: 88.27 kB / 434.4 MB, free: 3.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.212e-05/0.2498, allocations: 7.953 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.2499, allocations: 17.72 kB / 434.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.25, allocations: 318.8 kB / 434.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.25, allocations: 7.938 kB / 434.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-05/0.2501, allocations: 35.42 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.499e-05/0.2502, allocations: 47.36 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2502, allocations: 7.938 kB / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001184/0.2503, allocations: 57.62 kB / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.2503, allocations: 4 kB / 434.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2503, allocations: 7.984 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2503, allocations: 0 / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.556e-05/0.2504, allocations: 8 kB / 434.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.2504, allocations: 0 / 434.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.199e-05/0.2504, allocations: 16.08 kB / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.2504, allocations: 0 / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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 9.82e-05/0.2505, allocations: 129.7 kB / 435 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.2506, allocations: 45.69 kB / 435 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.246e-05/0.2506, allocations: 8.344 kB / 435.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2506, allocations: 4 kB / 435.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.2507, allocations: 4 kB / 435.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2507, allocations: 0 / 435.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.2508, allocations: 140.6 kB / 435.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2508, allocations: 0 / 435.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.042e-05/0.2509, allocations: 15.92 kB / 435.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.2509, allocations: 4 kB / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.2509, allocations: 0 / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2509, allocations: 0 / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2509, allocations: 3.938 kB / 435.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.2511, allocations: 172.3 kB / 435.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.2511, allocations: 19.91 kB / 435.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.2511, allocations: 0 / 435.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.758e-05/0.2512, allocations: 4 kB / 435.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.476e-05/0.2512, allocations: 4 kB / 435.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.2512, allocations: 4 kB / 435.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.801e-05/0.2513, allocations: 109.4 kB / 435.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2513, allocations: 0 / 435.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.2515, allocations: 8 kB / 435.5 MB, free: 1.867 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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0004641/0.252, allocations: 0.6976 MB / 436.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.2521, allocations: 31.92 kB / 436.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2521, allocations: 256 / 436.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.213e-05/0.2521, allocations: 15.98 kB / 436.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.2524, allocations: 18.08 kB / 436.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.2537, allocations: 1.329 MB / 437.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.518e-05/0.2537, allocations: 71.33 kB / 437.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.622e-05/0.2538, allocations: 12.05 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.289e-05/0.2538, allocations: 11.44 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2538, allocations: 0 / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.2805, allocations: 2.03 MB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.54, allocations: 4.062 kB / 439.8 MB, free: 13.63 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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: 12.925547214021208]