Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.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.001315/0.001315, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001442/0.001442, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 43.92 kB / 378.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2726, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003657/0.2763, allocations: 2.14 MB / 434.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2787, allocations: 1.06 MB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.2788, allocations: 0 / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.279, allocations: 39.59 kB / 435.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.2792, allocations: 63.5 kB / 435.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.2796, allocations: 131.8 kB / 435.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004958/0.2801, allocations: 387.1 kB / 435.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.2803, allocations: 79.52 kB / 435.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.2814, allocations: 0.9669 MB / 436.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.2817, allocations: 207.2 kB / 437 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.792e-05/0.2817, allocations: 36 kB / 437 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.683e-05/0.2818, allocations: 36 kB / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.282, allocations: 171.2 kB / 437.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.2823, allocations: 282.1 kB / 437.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009905/0.2833, allocations: 0.977 MB / 438.5 MB, free: 328 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2833, allocations: 0 / 438.5 MB, free: 328 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2833, allocations: 4 kB / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.2833, allocations: 0 / 438.5 MB, free: 324 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001331/0.2846, allocations: 1.06 MB / 439.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2847, allocations: 11.97 kB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.07e-05/0.2847, allocations: 8.188 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.206e-05/0.2848, allocations: 58.73 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.2849, allocations: 84.38 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.2854, allocations: 374.9 kB / 440.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.373e-05/0.2854, allocations: 28.3 kB / 440.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.222e-05/0.2855, allocations: 19.38 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.2861, allocations: 301.2 kB / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2861, allocations: 0 / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.283e-05/0.2862, allocations: 8 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2862, allocations: 4 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/0.2866, allocations: 211.9 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.288, allocations: 0.8542 MB / 441.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/0.2885, allocations: 174.5 kB / 441.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.2887, allocations: 116.8 kB / 441.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.2888, allocations: 4.031 kB / 441.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006679/0.2894, allocations: 383.6 kB / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2894, allocations: 0 / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001415/0.2908, allocations: 0.7454 MB / 442.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.291, allocations: 178.1 kB / 443.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.2923, allocations: 0.9922 MB / 444 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.246e-05/0.2924, allocations: 41.69 kB / 444.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2925, allocations: 161.9 kB / 444.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.029e-05/0.2926, allocations: 59.58 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.2928, allocations: 165.3 kB / 444.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.293, allocations: 334.8 kB / 444.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.2932, allocations: 123.9 kB / 444.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.2935, allocations: 168.9 kB / 445.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000641/0.2942, allocations: 477.8 kB / 445.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2942, allocations: 0 / 445.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001002/0.2952, allocations: 0.582 MB / 446.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.2953, allocations: 130.8 kB / 446.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2953, allocations: 3.984 kB / 446.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2953, allocations: 4 kB / 446.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.284e-05/0.2954, allocations: 16.19 kB / 446.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.2954, allocations: 11.94 kB / 446.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.2956, allocations: 23.88 kB / 446.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.2958, allocations: 115.9 kB / 446.4 MB, free: 7.926 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0006254/0.2964, allocations: 0.5185 MB / 446.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.2965, allocations: 87.47 kB / 447 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.2967, allocations: 130.5 kB / 447.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.2967, allocations: 8.031 kB / 447.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2967, allocations: 3.938 kB / 447.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2967, allocations: 0 / 447.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007581/0.2975, allocations: 0.5976 MB / 447.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2975, allocations: 0 / 447.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.2975, allocations: 8 kB / 447.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.2975, allocations: 4 kB / 447.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-05/0.2976, allocations: 23.98 kB / 447.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2976, allocations: 4 kB / 447.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.2976, allocations: 7.938 kB / 447.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.2987, allocations: 0.6983 MB / 448.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008357/0.2996, allocations: 0.493 MB / 449 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.2997, allocations: 24 kB / 449 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.2999, allocations: 15.98 kB / 449 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.3, allocations: 55.88 kB / 449.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.3002, allocations: 115.9 kB / 449.2 MB, free: 5.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009877/0.3012, allocations: 0.7329 MB / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3012, allocations: 0 / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.3015, allocations: 91.89 kB / 450 MB, free: 4.191 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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.001574/0.3031, allocations: 1.286 MB / 451.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008874/0.304, allocations: 0.5365 MB / 451.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.304, allocations: 3.938 kB / 451.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.3045, allocations: 393.5 kB / 452.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.3053, allocations: 209.6 kB / 452.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006579/0.3119, allocations: 4.525 MB / 457 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00077/0.3126, allocations: 0.9713 MB / 457.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003766/0.313, allocations: 165.2 kB / 458.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.3133, allocations: 139.2 kB / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3133, allocations: 0 / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.3485, allocations: 10.56 MB / 468.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.32, allocations: 10.66 kB / 468.8 MB, free: 1.262 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.680381068959832] Failed to read output from testmodel.py, exit status != 0: ['time', 'Adder.AND.G2.x', 'Adder.AND.G2.y', 'Adder.XOR.G2.x', 'Adder.XOR.G2.y'] 11.482462204003241 11.510889116 11.222103873 Calling exit ...