Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.001567/0.001567, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001492/0.001492, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.38/1.38, allocations: 230.6 MB / 258.3 MB, free: 7.77 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.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 47.92 kB / 378.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2562, allocations: 53.36 MB / 431.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.00383/0.2601, allocations: 1.577 MB / 433.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.2614, allocations: 0.4948 MB / 433.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.593e-05/0.2615, allocations: 7.938 kB / 433.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.485e-05/0.2616, allocations: 3.938 kB / 433.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.2617, allocations: 7.922 kB / 434 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.2621, allocations: 55.08 kB / 434 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.2622, allocations: 43.8 kB / 434.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.2624, allocations: 11.98 kB / 434.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.2625, allocations: 31.84 kB / 434.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/0.2626, allocations: 11.94 kB / 434.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.2626, allocations: 8 kB / 434.1 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.635e-05/0.2626, allocations: 4 kB / 434.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.804e-05/0.2627, allocations: 15.92 kB / 434.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.2627, allocations: 11.88 kB / 434.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.2629, allocations: 65.78 kB / 434.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2629, allocations: 0 / 434.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2629, allocations: 0 / 434.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2629, allocations: 7.938 kB / 434.2 MB, free: 4.305 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.0005565/0.2635, allocations: 290.1 kB / 434.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.2635, allocations: 8.031 kB / 434.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.631e-05/0.2635, allocations: 4.188 kB / 434.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.815e-05/0.2636, allocations: 34.75 kB / 434.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.2638, allocations: 16.88 kB / 434.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.2641, allocations: 144.8 kB / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.2641, allocations: 384 / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.2641, allocations: 4.375 kB / 434.7 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.2644, allocations: 96.98 kB / 434.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.2644, allocations: 4 kB / 434.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2644, allocations: 0 / 434.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2644, allocations: 0 / 434.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.2646, allocations: 19.92 kB / 434.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003838/0.2649, allocations: 236.8 kB / 435.1 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.2651, allocations: 41.2 kB / 435.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.745e-05/0.2651, allocations: 21.72 kB / 435.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2652, allocations: 0 / 435.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.2652, allocations: 38.5 kB / 435.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.2652, allocations: 4 kB / 435.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003182/0.2655, allocations: 65.56 kB / 435.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.83e-05/0.2656, allocations: 85.11 kB / 435.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.2658, allocations: 138.1 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.2658, allocations: 25.7 kB / 435.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.156e-05/0.2659, allocations: 88.14 kB / 435.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.2659, allocations: 0 / 435.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.093e-05/0.2659, allocations: 25.66 kB / 435.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2661, allocations: 319 kB / 435.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.554e-05/0.2662, allocations: 4 kB / 435.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.318e-05/0.2662, allocations: 29.64 kB / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.2664, allocations: 29.7 kB / 436 MB, free: 2.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2664, allocations: 4 kB / 436 MB, free: 2.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001822/0.2666, allocations: 53.62 kB / 436 MB, free: 2.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2666, allocations: 12.06 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2666, allocations: 4 kB / 436 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2666, allocations: 0 / 436 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.384e-05/0.2667, allocations: 7.984 kB / 436 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.2667, allocations: 0 / 436 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.169e-05/0.2667, allocations: 4 kB / 436 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.2668, allocations: 0 / 436 MB, free: 2.246 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: 0 () * 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 0.0001218/0.2669, allocations: 121.8 kB / 436.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-05/0.267, allocations: 41.59 kB / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.917e-05/0.267, allocations: 19.8 kB / 436.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.267, allocations: 0 / 436.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.267, allocations: 3.984 kB / 436.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.267, allocations: 0 / 436.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.2673, allocations: 140.6 kB / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.2673, allocations: 0 / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.281e-05/0.2673, allocations: 7.984 kB / 436.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.2673, allocations: 3.984 kB / 436.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.2673, allocations: 0 / 436.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2674, allocations: 4 kB / 436.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2674, allocations: 0 / 436.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002427/0.2676, allocations: 164.3 kB / 436.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.2677, allocations: 19.88 kB / 436.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.2677, allocations: 0 / 436.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.2678, allocations: 7.938 kB / 436.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.2678, allocations: 3.984 kB / 436.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.2678, allocations: 4 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001081/0.2679, allocations: 106.4 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2679, allocations: 0 / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003905/0.2683, allocations: 4 kB / 436.7 MB, free: 1.531 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 (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.0006339/0.269, allocations: 0.6937 MB / 437.4 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.2691, allocations: 23.92 kB / 437.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2691, allocations: 0 / 437.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.987e-05/0.2692, allocations: 11.98 kB / 437.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.2697, allocations: 16.02 kB / 437.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.2716, allocations: 1.32 MB / 438.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.2718, allocations: 75.31 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.246e-05/0.2718, allocations: 4 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.885e-05/0.2719, allocations: 15.42 kB / 438.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2719, allocations: 0 / 438.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02805/0.2999, allocations: 1.685 MB / 440.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.72, allocations: 8.062 kB / 440.5 MB, free: 13.69 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.113727105082944]