Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1",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.0008266/0.0008268, allocations: 176.1 kB / 16.77 MB, free: 4.922 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.133/1.133, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0006658/0.0006658, allocations: 88.98 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05497/0.05497, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05973/0.0601, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.0011/0.06123, allocations: 1.266 MB / 443.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005466/0.06179, allocations: 0.4961 MB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.248e-05/0.06186, allocations: 4 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.084e-05/0.06189, allocations: 3.938 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.486e-05/0.06197, allocations: 3.938 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001689/0.06215, allocations: 47.89 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.375e-05/0.06222, allocations: 43.84 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.316e-05/0.06229, allocations: 15.98 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.628e-05/0.06236, allocations: 15.92 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.694e-05/0.0624, allocations: 23.86 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.06242, allocations: 3.938 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.217e-06/0.06243, allocations: 4 kB / 444.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.437e-05/0.06246, allocations: 7.984 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.748e-05/0.0625, allocations: 49.52 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.581e-05/0.06255, allocations: 35.94 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.06256, allocations: 0 / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.06256, allocations: 0 / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.936e-06/0.06257, allocations: 0 / 444.5 MB, free: 14.5 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.0002612/0.06284, allocations: 367.5 kB / 444.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.664e-05/0.06287, allocations: 12.03 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.795e-05/0.06289, allocations: 30.75 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.913e-05/0.06292, allocations: 12.84 kB / 444.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.06303, allocations: 192.1 kB / 445.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.06305, allocations: 4.375 kB / 445.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.06306, allocations: 4.375 kB / 445.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.06328, allocations: 133.1 kB / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.06329, allocations: 3.938 kB / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-06/0.06331, allocations: 0 / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.06331, allocations: 4 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.219e-05/0.06339, allocations: 19.98 kB / 445.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001739/0.06357, allocations: 273.7 kB / 445.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.06371, allocations: 138.2 kB / 445.7 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.389e-05/0.06378, allocations: 33.75 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.0638, allocations: 4 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.025e-05/0.06382, allocations: 38.5 kB / 445.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.06382, allocations: 3.938 kB / 445.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001935/0.06402, allocations: 81.56 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.06406, allocations: 89.05 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.815e-05/0.06413, allocations: 140.5 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-06/0.06414, allocations: 25.7 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.226e-05/0.06417, allocations: 88.12 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.087e-06/0.06419, allocations: 7.906 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.06419, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.354e-05/0.06423, allocations: 318.8 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.808e-05/0.06427, allocations: 11.98 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.818e-05/0.06432, allocations: 39.42 kB / 446.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.424e-05/0.0644, allocations: 55.36 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.06441, allocations: 0 / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001075/0.06452, allocations: 65.62 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.06454, allocations: 8 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.06454, allocations: 0 / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.756e-06/0.06456, allocations: 0 / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.542e-05/0.06462, allocations: 16.05 kB / 446.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.06463, allocations: 8 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.765e-05/0.06467, allocations: 4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.06468, allocations: 0 / 446.7 MB, free: 12.02 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 4.715e-05/0.06474, allocations: 129.5 kB / 446.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.06479, allocations: 41.61 kB / 446.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.188e-05/0.06482, allocations: 16.23 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.06483, allocations: 0 / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.06484, allocations: 4 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.06484, allocations: 4 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.06495, allocations: 173.5 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.06496, allocations: 0 / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-05/0.06502, allocations: 15.92 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.06503, allocations: 4 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.06504, allocations: 0 / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.06504, allocations: 3.938 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.06505, allocations: 4 kB / 447.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.06518, allocations: 172.3 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.2e-05/0.06522, allocations: 96.94 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.06524, allocations: 4 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.061e-05/0.0653, allocations: 0 / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.235e-05/0.06533, allocations: 7.984 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.06534, allocations: 0 / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.25e-05/0.06539, allocations: 114 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.06539, allocations: 0 / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001992/0.0656, allocations: 8 kB / 447.5 MB, free: 11.13 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.0002307/0.06583, allocations: 0.7057 MB / 448.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.06595, allocations: 43.95 kB / 448.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.06596, allocations: 0 / 448.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.255e-05/0.066, allocations: 11.98 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.06628, allocations: 20.03 kB / 448.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005567/0.06685, allocations: 0.5502 MB / 448.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.571e-05/0.06695, allocations: 0.6887 MB / 449.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.06698, allocations: 15.42 kB / 449.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.06699, allocations: 0 / 449.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.285/2.352, allocations: 0.9569 MB / 450.5 MB, free: 8.02 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time