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.001513/0.001513, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001779/0.001779, allocations: 212.8 kB / 23.73 MB, free: 4.387 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.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 7.738 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 55.91 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2532, allocations: 53.35 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003241/0.2565, allocations: 1.838 MB / 432.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2578, allocations: 0.705 MB / 433.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.258, allocations: 7.938 kB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.2581, allocations: 19.8 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.2582, allocations: 27.78 kB / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005235/0.2588, allocations: 171.1 kB / 433.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.259, allocations: 159.5 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.2591, allocations: 33.73 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.2593, allocations: 63.77 kB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.2594, allocations: 59.58 kB / 434.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.2594, allocations: 20 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.2595, allocations: 55.95 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-05/0.2596, allocations: 39.91 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.726e-05/0.2597, allocations: 55.59 kB / 434.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.26, allocations: 216.8 kB / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.26, allocations: 0 / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.26, allocations: 0 / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.26, allocations: 0 / 434.5 MB, free: 3.16 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.0007045/0.2607, allocations: 401.6 kB / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2607, allocations: 12.03 kB / 434.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.537e-05/0.2608, allocations: 46.73 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.2609, allocations: 24.8 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.2613, allocations: 191.5 kB / 435.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2613, allocations: 8.562 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/0.2613, allocations: 15.94 kB / 435.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006972/0.262, allocations: 352.2 kB / 435.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.262, allocations: 3.984 kB / 435.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.262, allocations: 4 kB / 435.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.262, allocations: 8 kB / 435.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.2623, allocations: 83.88 kB / 435.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004053/0.2627, allocations: 296.7 kB / 436 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.2632, allocations: 177 kB / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.2634, allocations: 101.7 kB / 436.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004074/0.2638, allocations: 55.94 kB / 436.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.2638, allocations: 42.78 kB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.2638, allocations: 0 / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006353/0.2644, allocations: 241.3 kB / 436.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.2645, allocations: 117.2 kB / 436.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.2648, allocations: 194.6 kB / 436.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.2648, allocations: 29.69 kB / 436.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.774e-05/0.2649, allocations: 100.6 kB / 437 MB, free: 500 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.2649, allocations: 23.83 kB / 437 MB, free: 476 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.265, allocations: 41.7 kB / 437.1 MB, free: 428 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2651, allocations: 330.8 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.493e-05/0.2652, allocations: 39.97 kB / 437.4 MB, free: 48 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.2654, allocations: 191 kB / 437.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.2657, allocations: 208 kB / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2657, allocations: 0 / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003562/0.2661, allocations: 217.1 kB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2661, allocations: 4 kB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2661, allocations: 8.594 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.2661, allocations: 4 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.2662, allocations: 47.91 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.2663, allocations: 8 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.2664, allocations: 19.89 kB / 438.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.2664, allocations: 15.92 kB / 438.1 MB, free: 15.21 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.0001676/0.2666, allocations: 149.7 kB / 438.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.2669, allocations: 161.4 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003803/0.2673, allocations: 183.3 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2673, allocations: 0 / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.2673, allocations: 8 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2673, allocations: 0 / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.2675, allocations: 180.5 kB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.2675, allocations: 0 / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.2677, allocations: 39.91 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.2677, allocations: 4 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2677, allocations: 0 / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2677, allocations: 0 / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2677, allocations: 4 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/0.2681, allocations: 292.1 kB / 439.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.53e-05/0.2682, allocations: 35.81 kB / 439.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.2682, allocations: 8 kB / 439.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.2683, allocations: 15.98 kB / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.2684, allocations: 0 / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.2684, allocations: 7.984 kB / 439.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.2685, allocations: 156 kB / 439.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2685, allocations: 4 kB / 439.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.2689, allocations: 32 kB / 439.4 MB, free: 13.87 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.0009861/0.2698, allocations: 0.9217 MB / 440.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003511/0.2702, allocations: 144.2 kB / 440.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2702, allocations: 0 / 440.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.793e-05/0.2702, allocations: 8 kB / 440.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/0.2709, allocations: 143.9 kB / 440.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.2734, allocations: 2.174 MB / 442.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.2736, allocations: 123.5 kB / 442.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.431e-05/0.2736, allocations: 17.48 kB / 442.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.409e-05/0.2737, allocations: 43.42 kB / 442.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2737, allocations: 0 / 442.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.306, allocations: 4.997 MB / 447.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.13, allocations: 7.859 kB / 447.9 MB, free: 5.215 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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.53792129503563]