Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.001328/0.001328, allocations: 108.6 kB / 18.49 MB, free: 4.539 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.001399/0.001399, allocations: 197 kB / 21.43 MB, free: 1.605 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.457/1.457, allocations: 225.6 MB / 249.8 MB, free: 3.613 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.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 43.94 kB / 366.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1155, allocations: 52.14 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.003069/0.1186, allocations: 1.571 MB / 420.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008828/0.1195, allocations: 490.7 kB / 420.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.1195, allocations: 3.938 kB / 420.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.385e-05/0.1196, allocations: 11.92 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.1197, allocations: 3.938 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.12, allocations: 47.83 kB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.1201, allocations: 35.91 kB / 420.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.1202, allocations: 11.98 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.185e-05/0.1203, allocations: 31.8 kB / 420.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.741e-05/0.1204, allocations: 19.92 kB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.1204, allocations: 4 kB / 420.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.1204, allocations: 4 kB / 420.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.509e-05/0.1205, allocations: 15.92 kB / 420.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.882e-05/0.1205, allocations: 27.8 kB / 420.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1207, allocations: 47.75 kB / 420.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.1207, allocations: 4 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1207, allocations: 0 / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1207, allocations: 0 / 420.8 MB, free: 10.25 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005539/0.1212, allocations: 379.1 kB / 421.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1213, allocations: 12.03 kB / 421.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.334e-05/0.1213, allocations: 192 / 421.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.555e-05/0.1213, allocations: 38.69 kB / 421.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.1214, allocations: 12.89 kB / 421.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.1216, allocations: 198.5 kB / 421.4 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.1216, allocations: 8.375 kB / 421.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.1216, allocations: 4.375 kB / 421.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.1219, allocations: 125 kB / 421.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1219, allocations: 0 / 421.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.122, allocations: 3.984 kB / 421.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.122, allocations: 0 / 421.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.093e-05/0.1221, allocations: 27.91 kB / 421.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003614/0.1224, allocations: 265.8 kB / 421.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.1227, allocations: 138.2 kB / 422 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.501e-05/0.1227, allocations: 29.77 kB / 422 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.1228, allocations: 4 kB / 422 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.1228, allocations: 30.56 kB / 422.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1228, allocations: 0 / 422.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002751/0.1231, allocations: 81.56 kB / 422.1 MB, free: 8.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/0.1231, allocations: 85.09 kB / 422.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.1233, allocations: 134 kB / 422.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.1233, allocations: 29.7 kB / 422.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.403e-05/0.1234, allocations: 88.14 kB / 422.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.1234, allocations: 7.891 kB / 422.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.1234, allocations: 21.7 kB / 422.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1236, allocations: 314.8 kB / 422.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.952e-05/0.1236, allocations: 19.92 kB / 422.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.718e-05/0.1237, allocations: 35.42 kB / 422.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001076/0.1238, allocations: 47.36 kB / 422.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1238, allocations: 0 / 422.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001395/0.1239, allocations: 69.58 kB / 423 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1239, allocations: 5.719 kB / 423 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1239, allocations: 4 kB / 423 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.124, allocations: 0 / 423 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.002e-05/0.124, allocations: 11.98 kB / 423 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.124, allocations: 0 / 423 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.277e-05/0.1241, allocations: 11.88 kB / 423 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1241, allocations: 0 / 423 MB, free: 7.754 MB / 350.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 0.0001101/0.1242, allocations: 134.5 kB / 423.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.756e-05/0.1243, allocations: 49.66 kB / 423.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.505e-05/0.1243, allocations: 8.234 kB / 423.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1243, allocations: 4 kB / 423.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1243, allocations: 0 / 423.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1243, allocations: 0 / 423.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/0.1245, allocations: 169.6 kB / 423.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1245, allocations: 4 kB / 423.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.428e-05/0.1246, allocations: 7.984 kB / 423.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.1246, allocations: 4 kB / 423.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.1246, allocations: 4 kB / 423.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1246, allocations: 3.938 kB / 423.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1246, allocations: 0 / 423.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.1248, allocations: 172.6 kB / 423.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.612e-05/0.1249, allocations: 93.05 kB / 423.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.1249, allocations: 8 kB / 423.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.878e-05/0.125, allocations: 4.047 kB / 423.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.125, allocations: 7.969 kB / 423.7 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.125, allocations: 4 kB / 423.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.407e-05/0.1251, allocations: 103.3 kB / 423.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1251, allocations: 0 / 423.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.1253, allocations: 4 kB / 423.8 MB, free: 6.875 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 (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.0005679/0.1259, allocations: 0.7131 MB / 424.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.126, allocations: 31.92 kB / 424.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1261, allocations: 3.938 kB / 424.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.139e-05/0.1261, allocations: 11.98 kB / 424.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.1264, allocations: 21.25 kB / 424.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.1279, allocations: 1.379 MB / 425.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.1282, allocations: 0.6961 MB / 426.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.092e-05/0.1283, allocations: 0 / 426.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.1283, allocations: 19.42 kB / 426.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1283, allocations: 0 / 426.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01856/0.1469, allocations: 1.602 MB / 428.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.145, allocations: 16.03 kB / 428.3 MB, free: 2.352 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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,sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.691644306003582]