Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep",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.0009996/0.0009997, allocations: 175.1 kB / 16.77 MB, free: 4.902 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.123/1.123, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007/0.0007, allocations: 78.44 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05537/0.05537, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003476, allocations: 16 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05897/0.05934, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001044/0.06041, allocations: 1.144 MB / 443.6 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001755/0.0606, allocations: 87.78 kB / 443.7 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.565e-05/0.06065, allocations: 4 kB / 443.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.06067, allocations: 3.938 kB / 443.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.175e-05/0.06071, allocations: 0 / 443.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.06091, allocations: 23.97 kB / 443.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.423e-05/0.06097, allocations: 19.88 kB / 443.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.637e-05/0.06104, allocations: 15.98 kB / 443.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.011e-05/0.06107, allocations: 0 / 443.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.235e-05/0.0611, allocations: 11.94 kB / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.06112, allocations: 0 / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.126e-06/0.06113, allocations: 4 kB / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.06115, allocations: 15.91 kB / 443.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.698e-05/0.06118, allocations: 37.64 kB / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.074e-05/0.06123, allocations: 15.97 kB / 443.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.06124, allocations: 0 / 443.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.06124, allocations: 0 / 443.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.494e-06/0.06125, allocations: 3.938 kB / 443.9 MB, free: 15.15 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002524/0.06151, allocations: 335.7 kB / 444.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.06154, allocations: 11.97 kB / 444.2 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.155e-05/0.06157, allocations: 34.75 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.779e-05/0.06159, allocations: 8.844 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.605e-05/0.06169, allocations: 176.4 kB / 444.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.48e-06/0.06171, allocations: 4.375 kB / 444.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-06/0.06172, allocations: 384 / 444.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002439/0.06197, allocations: 127.7 kB / 444.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.06199, allocations: 3.938 kB / 444.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.75e-06/0.062, allocations: 4 kB / 444.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.06201, allocations: 0 / 444.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.695e-05/0.06208, allocations: 19.98 kB / 444.6 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.329e-05/0.06216, allocations: 157.6 kB / 444.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.06229, allocations: 62.55 kB / 444.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.883e-05/0.06234, allocations: 24.92 kB / 444.8 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.06237, allocations: 4 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.939e-06/0.06238, allocations: 34.5 kB / 444.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.06239, allocations: 4 kB / 444.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001691/0.06256, allocations: 73.61 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.0626, allocations: 55.41 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.961e-05/0.06264, allocations: 105.8 kB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.651e-06/0.06266, allocations: 29.7 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.47e-05/0.06268, allocations: 80.14 kB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-06/0.06269, allocations: 7.984 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.834e-06/0.06269, allocations: 0 / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.063e-05/0.06273, allocations: 318.8 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.093e-06/0.06274, allocations: 0 / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.7e-05/0.06276, allocations: 39.53 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.677e-05/0.06279, allocations: 39.38 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.0628, allocations: 0 / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.395e-05/0.06286, allocations: 57.53 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.06287, allocations: 7.938 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.06288, allocations: 0 / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.06289, allocations: 4 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.848e-05/0.06294, allocations: 8.125 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.06295, allocations: 4 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.664e-05/0.06297, allocations: 0 / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-06/0.06298, allocations: 3.938 kB / 445.7 MB, free: 13.08 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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.031e-05/0.06302, allocations: 122.4 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-05/0.06311, allocations: 65.61 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.902e-05/0.06314, allocations: 7.906 kB / 445.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.06315, allocations: 7.938 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.06316, allocations: 0 / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.06316, allocations: 0 / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.723e-05/0.06321, allocations: 153.7 kB / 446 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.06322, allocations: 3.984 kB / 446 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.213e-05/0.06328, allocations: 8 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.06329, allocations: 3.938 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.0633, allocations: 256 / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.06331, allocations: 8 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.06332, allocations: 0 / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.06342, allocations: 96.95 kB / 446.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.32e-05/0.06344, allocations: 77.11 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.859e-06/0.06346, allocations: 3.938 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.376e-05/0.06349, allocations: 7.984 kB / 446.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-06/0.0635, allocations: 0 / 446.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.0635, allocations: 0 / 446.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.911e-05/0.06353, allocations: 87.28 kB / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06353, allocations: 0 / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001723/0.06371, allocations: 4 kB / 446.3 MB, free: 12.33 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * 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.0002107/0.06392, allocations: 0.624 MB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.49e-05/0.06401, allocations: 23.98 kB / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.06402, allocations: 0 / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.82e-07/0.06402, allocations: 4 kB / 447 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.06421, allocations: 27.92 kB / 447 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003669/0.06459, allocations: 411.1 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.892e-05/0.06467, allocations: 0.6809 MB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.408e-05/0.0647, allocations: 15.42 kB / 448.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.06471, allocations: 4 kB / 448.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.273/2.338, allocations: 0.7786 MB / 448.9 MB, free: 9.652 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock1.y,step.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,step.height,step.offset,step.simTime,step.startTime,step.y,time