Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001247, allocations: 118 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 205.2 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.2 MB / 249.8 MB, free: 9.324 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003007/0.003007, allocations: 55.91 kB / 367.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2821, allocations: 53.31 MB / 420.4 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003712/0.2858, allocations: 2.038 MB / 422.4 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.2883, allocations: 1.282 MB / 423.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.2884, allocations: 7.938 kB / 423.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008768/0.2893, allocations: 303.1 kB / 424 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006659/0.2899, allocations: 254.4 kB / 424.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006043/0.2905, allocations: 231.4 kB / 424.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004397/0.291, allocations: 343.2 kB / 424.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.2911, allocations: 52.7 kB / 424.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.2913, allocations: 151.4 kB / 425 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.2916, allocations: 167.3 kB / 425.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/0.2916, allocations: 16 kB / 425.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.2918, allocations: 79.95 kB / 425.3 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.2919, allocations: 95.61 kB / 425.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.2921, allocations: 123.2 kB / 425.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005254/0.2926, allocations: 366.4 kB / 425.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2926, allocations: 3.938 kB / 425.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2926, allocations: 0 / 425.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2926, allocations: 4 kB / 425.9 MB, free: 2.977 MB / 334.1 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.001182/0.2938, allocations: 0.6803 MB / 426.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2938, allocations: 8.031 kB / 426.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.697e-05/0.2939, allocations: 36.7 kB / 426.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005043/0.2944, allocations: 342.6 kB / 426.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.2944, allocations: 12.38 kB / 426.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.434e-05/0.2945, allocations: 16.12 kB / 426.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.2949, allocations: 151.1 kB / 427.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2949, allocations: 3.938 kB / 427.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.2949, allocations: 4 kB / 427.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.2949, allocations: 0 / 427.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.2951, allocations: 71.95 kB / 427.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008155/0.2959, allocations: 0.4886 MB / 427.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.2963, allocations: 122.7 kB / 427.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.2964, allocations: 52.77 kB / 427.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.2964, allocations: 4 kB / 427.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.2967, allocations: 119.3 kB / 428 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.2967, allocations: 0 / 428 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005877/0.2973, allocations: 217.3 kB / 428.2 MB, free: 492 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.77e-05/0.2974, allocations: 102.8 kB / 428.3 MB, free: 364 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005949/0.298, allocations: 461.5 kB / 428.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.194e-05/0.298, allocations: 33.7 kB / 428.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.2982, allocations: 175.9 kB / 428.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.432e-05/0.2982, allocations: 43.69 kB / 429 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.2983, allocations: 41.7 kB / 429 MB, free: 15.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.2985, allocations: 346.8 kB / 429.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.2986, allocations: 39.98 kB / 429.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.2989, allocations: 112.4 kB / 429.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.2991, allocations: 105.7 kB / 429.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2991, allocations: 0 / 429.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003774/0.2995, allocations: 181.3 kB / 429.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.2995, allocations: 14.44 kB / 429.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2995, allocations: 64 / 429.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.2995, allocations: 4 kB / 429.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.2997, allocations: 27.98 kB / 429.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.2997, allocations: 0 / 429.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2998, allocations: 15.94 kB / 429.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.2998, allocations: 8 kB / 429.8 MB, free: 14.71 MB / 350.1 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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.3, allocations: 179.5 kB / 430 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.73e-05/0.3001, allocations: 35.75 kB / 430.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.662e-05/0.3001, allocations: 38.97 kB / 430.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3001, allocations: 0 / 430.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3002, allocations: 0 / 430.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3002, allocations: 4 kB / 430.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.3005, allocations: 309.4 kB / 430.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3005, allocations: 0 / 430.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.58e-05/0.3006, allocations: 15.94 kB / 430.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.3006, allocations: 3.938 kB / 430.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3006, allocations: 0 / 430.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3006, allocations: 7.938 kB / 430.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3006, allocations: 0 / 430.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003813/0.301, allocations: 204.8 kB / 430.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.3011, allocations: 112.9 kB / 430.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.3011, allocations: 3.938 kB / 430.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.096e-05/0.3012, allocations: 19.98 kB / 430.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.395e-05/0.3013, allocations: 7.984 kB / 430.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.3013, allocations: 12 kB / 430.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004787/0.3018, allocations: 331.1 kB / 431.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3018, allocations: 0 / 431.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003121/0.3021, allocations: 55.92 kB / 431.2 MB, free: 13.31 MB / 350.1 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.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001671/0.3037, allocations: 418.5 kB / 431.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003574/0.3041, allocations: 119.9 kB / 431.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3041, allocations: 0 / 431.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.3042, allocations: 56.05 kB / 431.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.3047, allocations: 80.28 kB / 431.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.3058, allocations: 0.5076 MB / 432.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.3063, allocations: 0.7792 MB / 433.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.3064, allocations: 42.25 kB / 433.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.488e-05/0.3065, allocations: 27.44 kB / 433.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3065, allocations: 0 / 433.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Templates: time 0.009719/0.3162, allocations: 3.928 MB / 437.1 MB, free: 7.465 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches