Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.001669/0.001669, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.002039/0.002039, allocations: 189 kB / 21.43 MB, free: 1.641 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.541/1.541, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 47.92 kB / 366.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1115, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003783/0.1153, allocations: 1.563 MB / 420.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009594/0.1163, allocations: 474.7 kB / 420.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.1164, allocations: 0 / 420.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.382e-05/0.1164, allocations: 3.938 kB / 420.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.1166, allocations: 19.86 kB / 420.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.1169, allocations: 39.39 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.117, allocations: 39.86 kB / 420.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.1171, allocations: 11.98 kB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.026e-05/0.1172, allocations: 15.94 kB / 420.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.295e-05/0.1172, allocations: 19.86 kB / 420.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.1173, allocations: 4 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.315e-05/0.1173, allocations: 4 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.755e-05/0.1173, allocations: 11.97 kB / 420.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.1174, allocations: 23.81 kB / 420.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.1175, allocations: 47.75 kB / 420.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1175, allocations: 0 / 420.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1175, allocations: 4 kB / 420.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1175, allocations: 3.938 kB / 420.8 MB, free: 10.32 MB / 350.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.0005321/0.1181, allocations: 379 kB / 421.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1181, allocations: 8.031 kB / 421.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.546e-05/0.1181, allocations: 4.188 kB / 421.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.903e-05/0.1182, allocations: 34.75 kB / 421.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.781e-05/0.1182, allocations: 8.891 kB / 421.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.1185, allocations: 196.2 kB / 421.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1185, allocations: 12.38 kB / 421.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.1185, allocations: 384 / 421.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.1188, allocations: 92.98 kB / 421.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1188, allocations: 0 / 421.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.1188, allocations: 4 kB / 421.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.1188, allocations: 4 kB / 421.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.395e-05/0.1189, allocations: 19.92 kB / 421.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.1193, allocations: 261.8 kB / 421.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.1194, allocations: 49.16 kB / 421.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.594e-05/0.1194, allocations: 21.77 kB / 421.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.1194, allocations: 0 / 421.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.1195, allocations: 38.5 kB / 421.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.1195, allocations: 0 / 421.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000275/0.1198, allocations: 69.56 kB / 421.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.1198, allocations: 85.36 kB / 422 MB, free: 8.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.12, allocations: 136.3 kB / 422.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.12, allocations: 25.7 kB / 422.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.1201, allocations: 88.12 kB / 422.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.1201, allocations: 0 / 422.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.1201, allocations: 25.61 kB / 422.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1203, allocations: 322.8 kB / 422.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.275e-05/0.1203, allocations: 8 kB / 422.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.978e-05/0.1204, allocations: 21.7 kB / 422.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.327e-05/0.1204, allocations: 33.64 kB / 422.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1204, allocations: 0 / 422.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001268/0.1206, allocations: 57.69 kB / 422.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1206, allocations: 4 kB / 422.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1206, allocations: 4 kB / 422.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1206, allocations: 0 / 422.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.368e-05/0.1207, allocations: 4 kB / 422.7 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.1207, allocations: 3.984 kB / 422.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.789e-05/0.1207, allocations: 4 kB / 422.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.1207, allocations: 0 / 422.7 MB, free: 8.062 MB / 350.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.0001015/0.1208, allocations: 117.8 kB / 422.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.107e-05/0.1209, allocations: 45.7 kB / 422.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.746e-05/0.1209, allocations: 11.88 kB / 422.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.121, allocations: 0 / 422.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.121, allocations: 3.938 kB / 422.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.121, allocations: 0 / 422.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.1212, allocations: 165.6 kB / 423.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1212, allocations: 4 kB / 423.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.655e-05/0.1212, allocations: 7.984 kB / 423.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.1212, allocations: 0 / 423.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.1212, allocations: 0 / 423.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1212, allocations: 8.031 kB / 423.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1212, allocations: 4 kB / 423.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000186/0.1214, allocations: 156.3 kB / 423.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.75e-05/0.1215, allocations: 93.05 kB / 423.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.1215, allocations: 0 / 423.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.902e-05/0.1216, allocations: 12.02 kB / 423.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.1216, allocations: 3.938 kB / 423.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.1216, allocations: 4 kB / 423.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.916e-05/0.1217, allocations: 107.2 kB / 423.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1217, allocations: 3.938 kB / 423.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.1219, allocations: 4 kB / 423.5 MB, free: 7.219 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: 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.000545/0.1225, allocations: 0.7014 MB / 424.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001479/0.1226, allocations: 23.92 kB / 424.2 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1226, allocations: 0 / 424.2 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.868e-05/0.1227, allocations: 8 kB / 424.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.123, allocations: 18.5 kB / 424.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1244, allocations: 1.316 MB / 425.5 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.1247, allocations: 0.6883 MB / 426.2 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.163e-05/0.1248, allocations: 8.031 kB / 426.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.518e-05/0.1248, allocations: 15.44 kB / 426.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1248, allocations: 0 / 426.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.1442, allocations: 1.515 MB / 427.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/7.954, allocations: 7.969 kB / 427.8 MB, free: 2.918 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.609814592986368]