Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00557/0.00557, allocations: 114 kB / 21.97 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 212.3 kB / 25.28 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 207.6 MB / 236 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 55.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2406, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002907/0.2435, allocations: 1.999 MB / 399.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.2453, allocations: 1.091 MB / 400.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.2455, allocations: 6.125 kB / 400.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.2465, allocations: 315.8 kB / 400.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005254/0.2471, allocations: 202.8 kB / 400.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007219/0.2478, allocations: 270.5 kB / 401 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.2482, allocations: 336.8 kB / 401.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.2484, allocations: 44.88 kB / 401.4 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.2486, allocations: 141.3 kB / 401.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.2488, allocations: 165.1 kB / 401.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.472e-05/0.2489, allocations: 18.06 kB / 401.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2491, allocations: 91.64 kB / 401.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.141e-05/0.2491, allocations: 90.06 kB / 401.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2492, allocations: 124 kB / 402 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.2497, allocations: 355.7 kB / 402.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2497, allocations: 0 / 402.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2497, allocations: 0 / 402.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.2497, allocations: 0.9062 kB / 402.3 MB, free: 5.938 MB / 318.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.000859/0.2505, allocations: 0.595 MB / 402.9 MB, free: 5.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.2506, allocations: 13.98 kB / 402.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.842e-05/0.2506, allocations: 6.5 kB / 402.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.2506, allocations: 45.61 kB / 403 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.562e-05/0.2507, allocations: 35.98 kB / 403 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.2511, allocations: 272 kB / 403.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.2511, allocations: 8.531 kB / 403.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.2511, allocations: 11.66 kB / 403.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.2514, allocations: 150.6 kB / 403.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2514, allocations: 4 kB / 403.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.2514, allocations: 8.203 kB / 403.5 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.2514, allocations: 2.406 kB / 403.5 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.2516, allocations: 67.61 kB / 403.5 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.2522, allocations: 460.5 kB / 404 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.2525, allocations: 125 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.49e-05/0.2526, allocations: 47.89 kB / 404.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.2526, allocations: 5.891 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.2528, allocations: 124.2 kB / 404.3 MB, free: 4.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.2528, allocations: 1.438 kB / 404.3 MB, free: 4.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004292/0.2533, allocations: 213.3 kB / 404.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.2533, allocations: 109 kB / 404.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/0.2537, allocations: 433.5 kB / 405 MB, free: 4.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.2537, allocations: 32.75 kB / 405.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.768e-05/0.2538, allocations: 165.9 kB / 405.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.2539, allocations: 36.7 kB / 405.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.2539, allocations: 46.22 kB / 405.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.081e-05/0.254, allocations: 346.9 kB / 405.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.2541, allocations: 40.22 kB / 405.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.2542, allocations: 102.1 kB / 405.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.2544, allocations: 110.5 kB / 405.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2544, allocations: 1.531 kB / 405.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000284/0.2547, allocations: 183.3 kB / 406.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.2547, allocations: 5.578 kB / 406.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2547, allocations: 1.25 kB / 406.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2547, allocations: 1.797 kB / 406.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.2549, allocations: 33.36 kB / 406.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.2549, allocations: 2.922 kB / 406.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.99e-05/0.255, allocations: 18.06 kB / 406.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.255, allocations: 4.125 kB / 406.1 MB, free: 3.246 MB / 318.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.0001321/0.2551, allocations: 172.3 kB / 406.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.2552, allocations: 34.27 kB / 406.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003461/0.2555, allocations: 178.7 kB / 406.5 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2555, allocations: 6.562 kB / 406.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2555, allocations: 0 / 406.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2555, allocations: 0.7969 kB / 406.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.2558, allocations: 275.7 kB / 406.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2558, allocations: 5.094 kB / 406.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.315e-05/0.2558, allocations: 16.28 kB / 406.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2558, allocations: 1.125 kB / 406.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.2558, allocations: 6.484 kB / 406.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2558, allocations: 1.062 kB / 406.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2558, allocations: 0.5156 kB / 406.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.2562, allocations: 200.2 kB / 407 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.675e-05/0.2562, allocations: 34.06 kB / 407 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.2562, allocations: 6.516 kB / 407 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.2563, allocations: 15.53 kB / 407.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.2564, allocations: 13.33 kB / 407.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.2564, allocations: 8.344 kB / 407.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002938/0.2567, allocations: 311.1 kB / 407.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2567, allocations: 4 kB / 407.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002892/0.257, allocations: 54.2 kB / 407.4 MB, free: 2.449 MB / 318.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,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 (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.001794/0.2588, allocations: 1.056 MB / 408.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002758/0.2591, allocations: 121.2 kB / 408.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2591, allocations: 0 / 408.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.2592, allocations: 57.66 kB / 408.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.2596, allocations: 76.42 kB / 408.7 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/0.2625, allocations: 2.823 MB / 411.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.263, allocations: 0.7776 MB / 412.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.2631, allocations: 50.11 kB / 412.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.2632, allocations: 94.16 kB / 412.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2632, allocations: 0 / 412.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.2927, allocations: 7.438 MB / 419.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.24, allocations: 11.11 kB / 419.9 MB, free: 11.06 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.46952763502486] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 11.449449303967413 11.46668992 11.213730211 Calling exit ...