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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001659/0.001659, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001882/0.001882, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 59.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2423, allocations: 50.55 MB / 408.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003426/0.2458, allocations: 2.041 MB / 410.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.248, allocations: 1.271 MB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.2482, allocations: 4 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000824/0.249, allocations: 310.8 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005523/0.2496, allocations: 255.1 kB / 412.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005575/0.2501, allocations: 218.9 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.2506, allocations: 367.1 kB / 413.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.2507, allocations: 60.7 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.2509, allocations: 143.5 kB / 413.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.2511, allocations: 151.4 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.2512, allocations: 20 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.2514, allocations: 91.88 kB / 413.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.2515, allocations: 83.75 kB / 413.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.2517, allocations: 135.1 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.2521, allocations: 365.6 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2521, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.2522, allocations: 4 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.2522, allocations: 0 / 414.3 MB, free: 12.16 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.0009943/0.2532, allocations: 0.6763 MB / 415 MB, free: 11.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.2532, allocations: 12.03 kB / 415 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.367e-05/0.2533, allocations: 46.73 kB / 415 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.712e-05/0.2534, allocations: 36.7 kB / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004325/0.2538, allocations: 338.7 kB / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.2538, allocations: 20.3 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.539e-05/0.2539, allocations: 15.94 kB / 415.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.2542, allocations: 143.1 kB / 415.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2542, allocations: 7.938 kB / 415.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.2542, allocations: 8 kB / 415.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2542, allocations: 0 / 415.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.2544, allocations: 63.97 kB / 415.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007308/0.2552, allocations: 0.4925 MB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.2555, allocations: 134.7 kB / 416.3 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.2557, allocations: 52.83 kB / 416.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.2557, allocations: 4 kB / 416.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.256, allocations: 111.2 kB / 416.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.256, allocations: 4 kB / 416.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005479/0.2565, allocations: 220.8 kB / 416.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/0.2566, allocations: 110.8 kB / 416.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005431/0.2572, allocations: 457.5 kB / 417.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.2572, allocations: 29.7 kB / 417.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.2573, allocations: 168 kB / 417.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.2574, allocations: 47.67 kB / 417.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.2575, allocations: 45.64 kB / 417.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2577, allocations: 346.8 kB / 417.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.2578, allocations: 43.98 kB / 417.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.258, allocations: 112.3 kB / 418 MB, free: 8.188 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.2582, allocations: 98.56 kB / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2582, allocations: 0 / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003592/0.2586, allocations: 181.3 kB / 418.2 MB, free: 7.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2586, allocations: 11.94 kB / 418.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2586, allocations: 0 / 418.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.2586, allocations: 0 / 418.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.2588, allocations: 31.92 kB / 418.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.2588, allocations: 64 / 418.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.2589, allocations: 19.94 kB / 418.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.2589, allocations: 8 kB / 418.3 MB, free: 7.828 MB / 334.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.0001869/0.2591, allocations: 175.5 kB / 418.5 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.2592, allocations: 35.75 kB / 418.5 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.092e-05/0.2592, allocations: 38.95 kB / 418.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.2592, allocations: 0 / 418.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2593, allocations: 0 / 418.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2593, allocations: 8 kB / 418.6 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.2596, allocations: 301.4 kB / 418.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2596, allocations: 0 / 418.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.2596, allocations: 11.98 kB / 418.9 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.2597, allocations: 3.938 kB / 418.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.2597, allocations: 7.938 kB / 418.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2597, allocations: 4 kB / 418.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2597, allocations: 0 / 418.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003763/0.2601, allocations: 212.1 kB / 419.1 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.965e-05/0.2602, allocations: 108.8 kB / 419.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.2602, allocations: 11.98 kB / 419.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.409e-05/0.2603, allocations: 8.047 kB / 419.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.511e-05/0.2604, allocations: 11.97 kB / 419.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.2604, allocations: 15.98 kB / 419.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000392/0.2608, allocations: 327.1 kB / 419.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2608, allocations: 0 / 419.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.2611, allocations: 51.94 kB / 419.6 MB, free: 6.438 MB / 334.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.002131/0.2632, allocations: 1.061 MB / 420.7 MB, free: 5.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.2636, allocations: 119.9 kB / 420.8 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2636, allocations: 4.125 kB / 420.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.2638, allocations: 59.91 kB / 420.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.2642, allocations: 78.45 kB / 420.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.2679, allocations: 2.861 MB / 423.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.2684, allocations: 0.7752 MB / 424.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.2685, allocations: 58.19 kB / 424.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.2687, allocations: 103.3 kB / 424.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2687, allocations: 0 / 424.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03129/0.3, allocations: 7.327 MB / 432.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.901/9.201, allocations: 15.02 kB / 432.1 MB, free: 10.07 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches