Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001271/0.001271, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001536/0.001536, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.373/1.373, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 55.92 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.229, allocations: 53.35 MB / 431.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003417/0.2325, allocations: 1.837 MB / 433.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2339, allocations: 0.6972 MB / 434.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.234, allocations: 7.938 kB / 434.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.2341, allocations: 31.66 kB / 434.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.2343, allocations: 23.8 kB / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005992/0.2349, allocations: 167.6 kB / 434.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.2351, allocations: 151.6 kB / 434.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.2353, allocations: 43.81 kB / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.2354, allocations: 63.72 kB / 434.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.2356, allocations: 63.69 kB / 434.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.2356, allocations: 16 kB / 435 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.2357, allocations: 51.97 kB / 435 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.56e-05/0.2358, allocations: 47.78 kB / 435.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.529e-05/0.2359, allocations: 55.66 kB / 435.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.2362, allocations: 211.1 kB / 435.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2362, allocations: 0 / 435.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2362, allocations: 0 / 435.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.2362, allocations: 0 / 435.3 MB, free: 3.332 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007459/0.237, allocations: 405.5 kB / 435.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.237, allocations: 12.03 kB / 435.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.813e-05/0.237, allocations: 8.375 kB / 435.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.526e-05/0.2371, allocations: 38.75 kB / 435.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.2373, allocations: 36.78 kB / 435.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.2376, allocations: 191.5 kB / 436 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.2376, allocations: 16.11 kB / 436 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.2376, allocations: 4 kB / 436 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007207/0.2384, allocations: 359.9 kB / 436.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2384, allocations: 0 / 436.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.2384, allocations: 4 kB / 436.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.2384, allocations: 3.984 kB / 436.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.2387, allocations: 87.94 kB / 436.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004111/0.2391, allocations: 288.6 kB / 436.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.2395, allocations: 185.2 kB / 436.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.2397, allocations: 92.73 kB / 437 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004023/0.2401, allocations: 63.94 kB / 437.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.2402, allocations: 34.56 kB / 437.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.383e-06/0.2402, allocations: 0 / 437.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006014/0.2408, allocations: 251.8 kB / 437.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.2409, allocations: 110.8 kB / 437.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.2411, allocations: 198.5 kB / 437.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.2411, allocations: 29.7 kB / 437.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.575e-05/0.2412, allocations: 104.6 kB / 437.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.2412, allocations: 23.83 kB / 437.8 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.2413, allocations: 37.7 kB / 437.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2414, allocations: 330.8 kB / 438.2 MB, free: 248 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.766e-05/0.2415, allocations: 35.97 kB / 438.2 MB, free: 212 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.2417, allocations: 190.9 kB / 438.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.242, allocations: 208.1 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.242, allocations: 7.938 kB / 438.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000394/0.2424, allocations: 209.2 kB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2424, allocations: 11.94 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2424, allocations: 4 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.2425, allocations: 8.594 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.2426, allocations: 39.92 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.2426, allocations: 11.98 kB / 438.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.2428, allocations: 15.95 kB / 438.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.2428, allocations: 12 kB / 438.9 MB, free: 15.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001611/0.2429, allocations: 155.3 kB / 439.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003306/0.2433, allocations: 161.5 kB / 439.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003895/0.2437, allocations: 175.3 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2437, allocations: 4 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2437, allocations: 3.938 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.2437, allocations: 4 kB / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002433/0.2439, allocations: 184.5 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.2439, allocations: 3.984 kB / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.2441, allocations: 27.98 kB / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.2441, allocations: 0 / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.2441, allocations: 11.94 kB / 439.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2441, allocations: 4 kB / 439.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2441, allocations: 3.984 kB / 439.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.2446, allocations: 291 kB / 439.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.014e-05/0.2446, allocations: 39.77 kB / 440 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.821e-05/0.2447, allocations: 11.98 kB / 440 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.2448, allocations: 8 kB / 440 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.2449, allocations: 3.984 kB / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.2449, allocations: 8 kB / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001498/0.245, allocations: 152 kB / 440.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.245, allocations: 0 / 440.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.2454, allocations: 32 kB / 440.2 MB, free: 14.03 MB / 350.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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001031/0.2464, allocations: 0.9327 MB / 441.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.2467, allocations: 140.5 kB / 441.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2467, allocations: 0 / 441.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.166e-05/0.2468, allocations: 11.92 kB / 441.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.2474, allocations: 137.7 kB / 441.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002713/0.2501, allocations: 2.171 MB / 443.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.2503, allocations: 131.5 kB / 443.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.651e-05/0.2503, allocations: 13.48 kB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-05/0.2504, allocations: 43.42 kB / 443.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.011e-06/0.2504, allocations: 0 / 443.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.2773, allocations: 4.687 MB / 448.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/10.99, allocations: 7.547 kB / 448.4 MB, free: 5.703 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(sample1.noise.seedState[1]),previous(sample1.noise.seedState[2]),previous(sample1.noise.seedState[3]),sample1.bits,sample1.limited,sample1.limiter.u,sample1.limiter.uMax,sample1.limiter.uMin,sample1.limiter.y,sample1.noise.firstSeed[1],sample1.noise.firstSeed[2],sample1.noise.firstSeed[3],sample1.noise.noiseMax,sample1.noise.noiseMin,sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],sample1.noise.u,sample1.noise.y,sample1.noisy,sample1.quantization.bits,sample1.quantization.quantized,sample1.quantization.u,sample1.quantization.y,sample1.quantization.yMax,sample1.quantization.yMin,sample1.quantized,sample1.sample1.u,sample1.sample1.y,sample1.u,sample1.y,sample1.yMax,sample1.yMin,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.396858897991478]