Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009386/0.0009386, allocations: 199.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.5 MB / 245.4 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007301/0.0007302, allocations: 97 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001958/0.0001958, allocations: 4 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2346, allocations: 51.29 MB / 408.6 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08856/0.3233, allocations: 81.51 MB / 490.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.3235, allocations: 77.72 kB / 490.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02676/0.3503, allocations: 10.19 MB / 0.4887 GB, free: 15.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3503, allocations: 0 / 0.4887 GB, free: 15.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.498e-05/0.3504, allocations: 11.92 kB / 0.4887 GB, free: 15.85 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008644/0.3512, allocations: 0.6584 MB / 0.4893 GB, free: 15.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.3513, allocations: 12.03 kB / 0.4894 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.741e-05/0.3514, allocations: 40.41 kB / 0.4894 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005308/0.3519, allocations: 366.3 kB / 0.4897 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.3519, allocations: 8.375 kB / 0.4898 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.352, allocations: 16.38 kB / 0.4898 GB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.3522, allocations: 154.2 kB / 0.4899 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3522, allocations: 192 / 0.4899 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.3523, allocations: 7.938 kB / 0.4899 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.3523, allocations: 4 kB / 0.4899 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.3524, allocations: 71.95 kB / 0.49 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006431/0.3531, allocations: 0.5159 MB / 0.4905 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.3534, allocations: 146.7 kB / 0.4906 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.3535, allocations: 48.84 kB / 0.4907 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.3535, allocations: 3.984 kB / 0.4907 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.3537, allocations: 115.3 kB / 0.4908 GB, free: 13.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.3537, allocations: 0 / 0.4908 GB, free: 13.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004457/0.3542, allocations: 225.1 kB / 0.491 GB, free: 13.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.3543, allocations: 110.8 kB / 0.4911 GB, free: 13.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004843/0.3547, allocations: 457.5 kB / 0.4916 GB, free: 12.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.3548, allocations: 29.7 kB / 0.4916 GB, free: 12.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.3549, allocations: 175.9 kB / 0.4918 GB, free: 12.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.3549, allocations: 39.55 kB / 0.4918 GB, free: 12.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.355, allocations: 0 / 0.4918 GB, free: 12.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3551, allocations: 342.8 kB / 0.4921 GB, free: 12.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3552, allocations: 51.97 kB / 0.4922 GB, free: 12.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.3553, allocations: 104.2 kB / 0.4923 GB, free: 11.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.3555, allocations: 117.6 kB / 0.4924 GB, free: 11.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3556, allocations: 3.938 kB / 0.4924 GB, free: 11.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003303/0.3559, allocations: 181.1 kB / 0.4926 GB, free: 11.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3559, allocations: 4 kB / 0.4926 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3559, allocations: 0 / 0.4926 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3559, allocations: 4 kB / 0.4926 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.3561, allocations: 27.92 kB / 0.4926 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.3561, allocations: 7.938 kB / 0.4926 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.3562, allocations: 23.98 kB / 0.4926 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.3562, allocations: 8 kB / 0.4926 GB, free: 11.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 0.0001464/0.3564, allocations: 163.6 kB / 0.4928 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.3564, allocations: 31.62 kB / 0.4928 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003591/0.3568, allocations: 207.4 kB / 0.493 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.3568, allocations: 4 kB / 0.493 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3568, allocations: 3.938 kB / 0.493 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3568, allocations: 7.938 kB / 0.493 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002628/0.3571, allocations: 333.3 kB / 0.4933 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3571, allocations: 0 / 0.4933 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.555e-05/0.3571, allocations: 8 kB / 0.4934 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3571, allocations: 0 / 0.4934 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.3572, allocations: 11.98 kB / 0.4934 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.3572, allocations: 0 / 0.4934 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3572, allocations: 3.938 kB / 0.4934 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/0.3575, allocations: 220.5 kB / 0.4936 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.834e-05/0.3576, allocations: 120.7 kB / 0.4937 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.3577, allocations: 11.98 kB / 0.4937 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/0.3578, allocations: 8 kB / 0.4937 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.3578, allocations: 19.91 kB / 0.4937 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.3578, allocations: 4 kB / 0.4937 GB, free: 10.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003433/0.3582, allocations: 331.1 kB / 0.4941 GB, free: 9.984 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3582, allocations: 0 / 0.4941 GB, free: 9.984 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002946/0.3585, allocations: 67.94 kB / 0.4941 GB, free: 9.918 MB / 378.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000855/0.3594, allocations: 437 kB / 0.4945 GB, free: 9.629 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.3597, allocations: 143.7 kB / 0.4947 GB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3597, allocations: 0 / 0.4947 GB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.3599, allocations: 63.97 kB / 0.4947 GB, free: 9.426 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.3603, allocations: 94.8 kB / 0.4948 GB, free: 9.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008171/0.3611, allocations: 0.604 MB / 0.4954 GB, free: 8.703 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.3614, allocations: 0.7755 MB / 0.4962 GB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.598e-05/0.3615, allocations: 35.42 kB / 0.4962 GB, free: 7.867 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3615, allocations: 4 kB / 0.4962 GB, free: 7.863 MB / 378.7 MB Notification: Performance of Templates: time 0.006157/0.3677, allocations: 4.385 MB / 0.5005 GB, free: 3.488 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches