Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 191.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 51.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2592, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002779/0.262, allocations: 1.556 MB / 424.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003977/0.2624, allocations: 127.6 kB / 424.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.933e-05/0.2625, allocations: 4 kB / 424.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.489e-05/0.2625, allocations: 7.922 kB / 424.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.2627, allocations: 7.875 kB / 424.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.2629, allocations: 47.89 kB / 424.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.485e-05/0.263, allocations: 31.86 kB / 424.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.186e-05/0.2631, allocations: 11.98 kB / 424.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.124e-05/0.2631, allocations: 19.92 kB / 424.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.895e-05/0.2632, allocations: 7.938 kB / 424.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.2632, allocations: 0 / 424.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.171e-05/0.2632, allocations: 4 kB / 424.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.961e-05/0.2632, allocations: 15.92 kB / 424.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.542e-05/0.2633, allocations: 15.88 kB / 424.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.2634, allocations: 49.44 kB / 424.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2634, allocations: 0 / 424.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2634, allocations: 4 kB / 424.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2634, allocations: 0 / 424.5 MB, free: 12.51 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.0004346/0.2638, allocations: 309.9 kB / 424.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2639, allocations: 11.97 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.987e-05/0.2639, allocations: 34.75 kB / 424.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.55e-05/0.2639, allocations: 8.891 kB / 424.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.2641, allocations: 126.5 kB / 425 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.2641, allocations: 384 / 425 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.2641, allocations: 4.375 kB / 425 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.2644, allocations: 113.6 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2644, allocations: 7.938 kB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.2644, allocations: 3.938 kB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2644, allocations: 3.938 kB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.21e-05/0.2645, allocations: 19.98 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.2648, allocations: 236.8 kB / 425.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.265, allocations: 69.06 kB / 425.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.966e-05/0.2651, allocations: 21.78 kB / 425.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2651, allocations: 4 kB / 425.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.2651, allocations: 38.55 kB / 425.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.2651, allocations: 0 / 425.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002368/0.2653, allocations: 77.75 kB / 425.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.2654, allocations: 85.05 kB / 425.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.2655, allocations: 134 kB / 425.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.2655, allocations: 29.7 kB / 425.8 MB, free: 11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.098e-05/0.2656, allocations: 88.14 kB / 425.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.2656, allocations: 3.984 kB / 425.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.2656, allocations: 21.67 kB / 425.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2658, allocations: 310.8 kB / 426.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.053e-05/0.2658, allocations: 11.98 kB / 426.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.423e-05/0.2659, allocations: 39.41 kB / 426.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.234e-05/0.266, allocations: 43.38 kB / 426.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.266, allocations: 7.875 kB / 426.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001221/0.2661, allocations: 65.61 kB / 426.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.2661, allocations: 4 kB / 426.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2661, allocations: 0 / 426.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2661, allocations: 4 kB / 426.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.606e-05/0.2662, allocations: 16.05 kB / 426.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2662, allocations: 8 kB / 426.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.887e-05/0.2662, allocations: 0 / 426.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.2662, allocations: 4 kB / 426.4 MB, free: 10.33 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: 0 () * 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 8.396e-05/0.2663, allocations: 117.8 kB / 426.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.2664, allocations: 49.64 kB / 426.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.2664, allocations: 12.34 kB / 426.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2664, allocations: 0 / 426.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2664, allocations: 7.984 kB / 426.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2664, allocations: 4 kB / 426.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.2666, allocations: 132.7 kB / 426.7 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2666, allocations: 4 kB / 426.7 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.647e-05/0.2666, allocations: 11.94 kB / 426.7 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.2666, allocations: 3.984 kB / 426.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.2666, allocations: 0 / 426.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.2666, allocations: 4 kB / 426.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2666, allocations: 0 / 426.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.2668, allocations: 172.3 kB / 426.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.2668, allocations: 15.83 kB / 426.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.2669, allocations: 0 / 426.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.338e-05/0.2669, allocations: 15.98 kB / 426.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.849e-05/0.2669, allocations: 0 / 426.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.2669, allocations: 4 kB / 427 MB, free: 9.703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.665e-05/0.267, allocations: 95.27 kB / 427 MB, free: 9.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.267, allocations: 0 / 427 MB, free: 9.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.2672, allocations: 11.94 kB / 427.1 MB, free: 9.598 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: 0 () * 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.0004721/0.2677, allocations: 0.6976 MB / 427.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.2678, allocations: 36.11 kB / 427.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2678, allocations: 0 / 427.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.2679, allocations: 8 kB / 427.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.2682, allocations: 27.05 kB / 427.8 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.2694, allocations: 1.319 MB / 429.1 MB, free: 7.383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.808e-05/0.2695, allocations: 71.33 kB / 429.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.824e-05/0.2695, allocations: 12.03 kB / 429.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.2696, allocations: 15.42 kB / 429.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2696, allocations: 0 / 429.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.2968, allocations: 2.016 MB / 431.3 MB, free: 5.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.64, allocations: 0 / 431.3 MB, free: 5.387 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.958369697909802]