Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001272/0.001272, allocations: 176.8 kB / 16.77 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.13/1.13, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007079/0.000708, allocations: 91.09 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06467/0.06467, allocations: 12.19 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003903, allocations: 19.98 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07686/0.07727, allocations: 50.28 MB / 442.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001457/0.07877, allocations: 1.239 MB / 443.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000339/0.07913, allocations: 163.5 kB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.247e-05/0.07921, allocations: 4 kB / 443.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.258e-05/0.07925, allocations: 3.938 kB / 443.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.07938, allocations: 3.984 kB / 443.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001976/0.07959, allocations: 31.91 kB / 443.9 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.015e-05/0.07967, allocations: 31.92 kB / 444 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.541e-05/0.07978, allocations: 19.97 kB / 444 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.349e-05/0.07984, allocations: 23.86 kB / 444 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.064e-05/0.07988, allocations: 7.938 kB / 444 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.0799, allocations: 0 / 444 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.07992, allocations: 0 / 444 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.674e-05/0.07996, allocations: 15.92 kB / 444 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.479e-05/0.08, allocations: 45.58 kB / 444.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.158e-05/0.08007, allocations: 35.88 kB / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.08008, allocations: 0 / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.08009, allocations: 4 kB / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.0801, allocations: 0 / 444.1 MB, free: 14.93 MB / 298.7 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.0003411/0.08044, allocations: 355.5 kB / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.08049, allocations: 12.03 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.732e-05/0.08052, allocations: 34.73 kB / 444.5 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.08056, allocations: 8.844 kB / 444.5 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.0807, allocations: 188.2 kB / 444.7 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.08072, allocations: 4.312 kB / 444.7 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.08074, allocations: 12.38 kB / 444.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.081, allocations: 121.6 kB / 444.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.08102, allocations: 3.938 kB / 444.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.08103, allocations: 0 / 444.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.08104, allocations: 4 kB / 444.8 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.13e-05/0.08112, allocations: 27.92 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002394/0.08137, allocations: 261.7 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.08154, allocations: 142.2 kB / 445.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.0816, allocations: 29.77 kB / 445.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.08163, allocations: 0 / 445.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.08165, allocations: 38.56 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.08165, allocations: 4 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002168/0.08188, allocations: 77.61 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.08192, allocations: 77.11 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.08201, allocations: 139.4 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-06/0.08202, allocations: 33.64 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.912e-05/0.08206, allocations: 92.16 kB / 445.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.141e-05/0.08207, allocations: 7.984 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.08208, allocations: 0 / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.862e-05/0.08213, allocations: 318.8 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.554e-05/0.08218, allocations: 7.984 kB / 446.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.673e-05/0.08222, allocations: 35.44 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.896e-05/0.08229, allocations: 51.36 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.0823, allocations: 3.938 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.974e-05/0.08241, allocations: 69.61 kB / 446.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.08243, allocations: 8 kB / 446.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.08244, allocations: 0 / 446.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.08245, allocations: 3.938 kB / 446.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.887e-05/0.08251, allocations: 11.98 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.08252, allocations: 7.938 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.051e-05/0.08256, allocations: 7.906 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.08257, allocations: 4.125 kB / 446.3 MB, free: 12.46 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/0.08263, allocations: 122.4 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.362e-05/0.08269, allocations: 45.97 kB / 446.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.08272, allocations: 12.25 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.08273, allocations: 4.031 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.08274, allocations: 0 / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.08274, allocations: 3.984 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.08286, allocations: 173.5 kB / 446.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.08287, allocations: 3.984 kB / 446.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.08291, allocations: 12 kB / 446.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.08292, allocations: 3.938 kB / 446.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.08293, allocations: 4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.08294, allocations: 4 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.08294, allocations: 0 / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001541/0.0831, allocations: 168.3 kB / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.431e-05/0.08316, allocations: 93 kB / 446.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.08318, allocations: 4 kB / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.749e-05/0.08328, allocations: 0 / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.08333, allocations: 7.984 kB / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.08334, allocations: 0 / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.431e-05/0.08342, allocations: 111.3 kB / 447 MB, free: 11.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-07/0.08343, allocations: 0 / 447 MB, free: 11.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003402/0.08378, allocations: 4 kB / 447 MB, free: 11.59 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003645/0.08415, allocations: 0.7053 MB / 447.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.08434, allocations: 43.91 kB / 447.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.08435, allocations: 0 / 447.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.08441, allocations: 4 kB / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.08489, allocations: 31.89 kB / 447.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008191/0.08573, allocations: 0.4959 MB / 448.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.08585, allocations: 0.6887 MB / 449 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.08588, allocations: 15.44 kB / 449 MB, free: 9.484 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.08589, allocations: 0 / 449 MB, free: 9.484 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.258/2.344, allocations: 0.9059 MB / 449.9 MB, free: 8.578 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock.y,sample.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,step.height,step.offset,step.startTime,step.y,time