Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.001284/0.001284, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.001406/0.001406, allocations: 215 kB / 21.45 MB, free: 1.641 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.546/1.546, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 43.94 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1216, allocations: 53.33 MB / 427 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.002887/0.1245, allocations: 1.585 MB / 428.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009633/0.1255, allocations: 0.5377 MB / 429.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.588e-05/0.1256, allocations: 7.938 kB / 429.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.497e-05/0.1256, allocations: 3.938 kB / 429.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.1257, allocations: 11.86 kB / 429.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.126, allocations: 51.83 kB / 429.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.1261, allocations: 47.83 kB / 429.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1262, allocations: 16 kB / 429.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.1264, allocations: 31.8 kB / 429.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.266e-05/0.1264, allocations: 27.86 kB / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.1264, allocations: 0 / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.269e-05/0.1265, allocations: 11.98 kB / 429.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.768e-05/0.1265, allocations: 15.92 kB / 429.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.004e-05/0.1266, allocations: 23.81 kB / 429.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.1267, allocations: 55.73 kB / 429.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1267, allocations: 0 / 429.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1267, allocations: 0 / 429.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1267, allocations: 0 / 429.5 MB, free: 2.324 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.0005159/0.1272, allocations: 387.1 kB / 429.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1273, allocations: 11.97 kB / 429.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.441e-05/0.1273, allocations: 4.188 kB / 429.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.155e-05/0.1273, allocations: 34.69 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.1275, allocations: 20.83 kB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.1277, allocations: 196.2 kB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1277, allocations: 4.375 kB / 430.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.1277, allocations: 12.38 kB / 430.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.128, allocations: 120.9 kB / 430.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.026e-06/0.128, allocations: 0 / 430.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.128, allocations: 0 / 430.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.128, allocations: 3.938 kB / 430.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.172e-05/0.1281, allocations: 23.98 kB / 430.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.1284, allocations: 269.7 kB / 430.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.1287, allocations: 138.2 kB / 430.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.984e-05/0.1287, allocations: 33.77 kB / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.1287, allocations: 0 / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.1288, allocations: 34.56 kB / 430.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.001e-06/0.1288, allocations: 4 kB / 430.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002545/0.129, allocations: 77.56 kB / 430.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1291, allocations: 89.17 kB / 430.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.1292, allocations: 139.9 kB / 431 MB, free: 0.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1292, allocations: 29.7 kB / 431.1 MB, free: 476 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.107e-05/0.1293, allocations: 84.14 kB / 431.1 MB, free: 388 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.355e-05/0.1293, allocations: 3.953 kB / 431.1 MB, free: 384 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.1293, allocations: 21.7 kB / 431.2 MB, free: 356 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1295, allocations: 326.7 kB / 431.5 MB, free: 20 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.1295, allocations: 7.984 kB / 431.5 MB, free: 12 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.895e-05/0.1296, allocations: 35.44 kB / 431.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.847e-05/0.1297, allocations: 47.36 kB / 431.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1297, allocations: 4 kB / 431.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000147/0.1298, allocations: 69.56 kB / 431.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1298, allocations: 4 kB / 431.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.1298, allocations: 3.938 kB / 431.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1299, allocations: 4 kB / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.632e-05/0.1299, allocations: 15.92 kB / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1299, allocations: 4 kB / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.791e-05/0.13, allocations: 128 / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.13, allocations: 8 kB / 431.7 MB, free: 15.79 MB / 366.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 9.47e-05/0.1301, allocations: 121.8 kB / 431.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.94e-05/0.1302, allocations: 45.66 kB / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.71e-05/0.1302, allocations: 16.23 kB / 431.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1302, allocations: 0 / 431.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1302, allocations: 0 / 431.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1302, allocations: 4 kB / 431.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.1304, allocations: 169.6 kB / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1304, allocations: 0 / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.709e-05/0.1304, allocations: 19.92 kB / 432 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1304, allocations: 336 / 432 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.1305, allocations: 4 kB / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1305, allocations: 0 / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1305, allocations: 0 / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/0.1307, allocations: 172.3 kB / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.95e-05/0.1307, allocations: 101 kB / 432.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.1308, allocations: 0 / 432.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.564e-05/0.1308, allocations: 4 kB / 432.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.1309, allocations: 3.984 kB / 432.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.1309, allocations: 4 kB / 432.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.682e-05/0.131, allocations: 105.2 kB / 432.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.131, allocations: 0 / 432.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.1312, allocations: 8 kB / 432.4 MB, free: 14.91 MB / 366.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.0005142/0.1317, allocations: 0.7054 MB / 433.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001505/0.1318, allocations: 35.92 kB / 433.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1318, allocations: 0 / 433.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.189e-05/0.1319, allocations: 12.23 kB / 433.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.1322, allocations: 26.31 kB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1337, allocations: 1.37 MB / 434.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.134, allocations: 0.6924 MB / 435.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.067e-05/0.1341, allocations: 11.89 kB / 435.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.1341, allocations: 11.44 kB / 435.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1341, allocations: 0 / 435.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.1526, allocations: 1.634 MB / 436.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.808/7.961, allocations: 8.047 kB / 436.9 MB, free: 10.38 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.780132734042127]