Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.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.005176/0.005176, 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.001356/0.001356, allocations: 210.6 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.346/1.346, allocations: 207.6 MB / 236.1 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 178] 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.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",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.001672/0.001672, allocations: 55.92 kB / 348 MB, free: 9.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2463, allocations: 49.15 MB / 397.2 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004216/0.2505, allocations: 4.066 MB / 401.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.2525, allocations: 1.125 MB / 402.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.2528, allocations: 13.5 kB / 402.4 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002521/0.253, allocations: 98.03 kB / 402.5 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000341/0.2533, allocations: 173.8 kB / 402.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.254, allocations: 284.3 kB / 402.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008573/0.2548, allocations: 0.9631 MB / 403.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003365/0.2552, allocations: 203.7 kB / 404.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003902/0.2556, allocations: 385.8 kB / 404.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.256, allocations: 441.9 kB / 404.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001353/0.2561, allocations: 113.9 kB / 405 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.2563, allocations: 112.7 kB / 405.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.2564, allocations: 209.5 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003019/0.2567, allocations: 416 kB / 405.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.2578, allocations: 1.148 MB / 406.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2579, allocations: 6.141 kB / 406.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2579, allocations: 0 / 406.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.2579, allocations: 0 / 406.9 MB, free: 2.945 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00275/0.2606, allocations: 1.125 MB / 408 MB, free: 2.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2607, allocations: 14.33 kB / 408 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.342e-05/0.2607, allocations: 22.42 kB / 408.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.719e-05/0.2608, allocations: 94.66 kB / 408.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.2609, allocations: 76.97 kB / 408.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/0.2615, allocations: 386.5 kB / 408.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.13e-05/0.2615, allocations: 48.06 kB / 408.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.576e-05/0.2616, allocations: 61.8 kB / 408.7 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.2636, allocations: 0.9232 MB / 409.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.2636, allocations: 5.219 kB / 409.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.666e-05/0.2637, allocations: 23.56 kB / 409.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.2637, allocations: 14.28 kB / 409.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.2663, allocations: 0.9749 MB / 410.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004548/0.2708, allocations: 3.009 MB / 413.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.2732, allocations: 0.7395 MB / 414.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.2743, allocations: 416.8 kB / 414.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.2744, allocations: 12.05 kB / 414.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.2756, allocations: 461.3 kB / 415.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.517e-06/0.2756, allocations: 0 / 415.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003385/0.279, allocations: 1.093 MB / 416.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001823/0.2792, allocations: 273.1 kB / 416.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.2803, allocations: 0.5039 MB / 417.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-05/0.2804, allocations: 38.55 kB / 417.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/0.2807, allocations: 344 kB / 417.5 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.2809, allocations: 183.8 kB / 417.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/0.2812, allocations: 135 kB / 417.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002284/0.2815, allocations: 367.1 kB / 418.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.2828, allocations: 402 kB / 418.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.2842, allocations: 0.6458 MB / 419.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002556/0.2868, allocations: 0.9663 MB / 420.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.2868, allocations: 2.375 kB / 420.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003267/0.2901, allocations: 1.137 MB / 421.3 MB, free: 9.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/0.2901, allocations: 60.28 kB / 421.4 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.2902, allocations: 6.438 kB / 421.4 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.529e-05/0.2902, allocations: 14.06 kB / 421.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.2913, allocations: 226.9 kB / 421.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.853e-05/0.2913, allocations: 14.03 kB / 421.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.2924, allocations: 176.2 kB / 421.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.2925, allocations: 28.88 kB / 421.8 MB, free: 9.168 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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.0004/0.2929, allocations: 224.5 kB / 422 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.2931, allocations: 60.5 kB / 422.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.2933, allocations: 74.7 kB / 422.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.2933, allocations: 5.469 kB / 422.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.2933, allocations: 0 / 422.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2933, allocations: 1.031 kB / 422.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00374/0.2971, allocations: 1.616 MB / 423.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2971, allocations: 1.312 kB / 423.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007707/0.2979, allocations: 148.3 kB / 423.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.2979, allocations: 2.844 kB / 424 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-05/0.2979, allocations: 10.78 kB / 424 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.2979, allocations: 2.938 kB / 424 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2979, allocations: 0 / 424 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003465/0.3014, allocations: 1.299 MB / 425.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.3016, allocations: 71.45 kB / 425.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.3017, allocations: 15.98 kB / 425.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007967/0.3025, allocations: 99.92 kB / 425.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.3027, allocations: 56.3 kB / 425.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.473e-05/0.3027, allocations: 15.98 kB / 425.5 MB, free: 6.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000587/0.3033, allocations: 350.9 kB / 425.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3033, allocations: 0 / 425.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006794/0.304, allocations: 171.8 kB / 426 MB, free: 5.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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.003839/0.3078, allocations: 1.843 MB / 427.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002715/0.3105, allocations: 0.9692 MB / 428.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3106, allocations: 0 / 428.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.3117, allocations: 399.1 kB / 429.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.3124, allocations: 97.69 kB / 429.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.325, allocations: 6.175 MB / 435.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.3255, allocations: 0.8588 MB / 436.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004002/0.3259, allocations: 80.66 kB / 436.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/0.3263, allocations: 211.4 kB / 436.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of SimCode: time 1.773e-06/0.3263, allocations: 0 / 436.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0429/0.3692, allocations: 13.97 MB / 450.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.77, allocations: 16.03 kB / 450.6 MB, free: 12.73 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.004721607023384] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 11.936109411995858 11.959003627 11.696800897 Calling exit ...