Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001389/0.001389, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2462, allocations: 50.54 MB / 408.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00482/0.2511, allocations: 4.252 MB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.2533, allocations: 1.215 MB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003098/0.2536, allocations: 15.94 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.2538, allocations: 102.9 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003317/0.2542, allocations: 174.3 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000586/0.2548, allocations: 339.5 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008524/0.2557, allocations: 1.089 MB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.256, allocations: 282.6 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000361/0.2564, allocations: 406.8 kB / 416.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004238/0.2568, allocations: 466.2 kB / 417.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.257, allocations: 120 kB / 417.2 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.2571, allocations: 120 kB / 417.3 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.2573, allocations: 223.3 kB / 417.5 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003414/0.2576, allocations: 450 kB / 418 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009323/0.2586, allocations: 1.221 MB / 419.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2586, allocations: 0 / 419.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2586, allocations: 0 / 419.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.2586, allocations: 0 / 419.2 MB, free: 7.113 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002681/0.2613, allocations: 1.263 MB / 420.4 MB, free: 5.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.2614, allocations: 8.031 kB / 420.4 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.2615, allocations: 106.7 kB / 420.5 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.2616, allocations: 84 kB / 420.6 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.2622, allocations: 477.5 kB / 421.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.699e-05/0.2623, allocations: 49.69 kB / 421.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.2624, allocations: 60.3 kB / 421.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.2646, allocations: 0.9721 MB / 422.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2646, allocations: 4 kB / 422.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.952e-05/0.2647, allocations: 28 kB / 422.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.2647, allocations: 16 kB / 422.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002615/0.2673, allocations: 1.003 MB / 423.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004387/0.2717, allocations: 3.192 MB / 426.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.2739, allocations: 0.9045 MB / 427.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.275, allocations: 445.8 kB / 427.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.2751, allocations: 20.5 kB / 427.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.2762, allocations: 468.7 kB / 428.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.096e-06/0.2762, allocations: 0 / 428.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.002969/0.2792, allocations: 1.095 MB / 429.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.2794, allocations: 372.3 kB / 429.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000755/0.2801, allocations: 0.5731 MB / 430.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.43e-05/0.2802, allocations: 41.7 kB / 430.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.2805, allocations: 375.5 kB / 430.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.2806, allocations: 165.6 kB / 430.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.2809, allocations: 142.5 kB / 431 MB, free: 10.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.281, allocations: 378.8 kB / 431.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.2821, allocations: 397.7 kB / 431.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.2834, allocations: 0.6811 MB / 432.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.2855, allocations: 0.97 MB / 433.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/0.2855, allocations: 4 kB / 433.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002665/0.2882, allocations: 1.138 MB / 434.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.422e-05/0.2883, allocations: 67.39 kB / 434.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.2883, allocations: 4 kB / 434.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/0.2883, allocations: 12 kB / 434.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009869/0.2893, allocations: 223.8 kB / 434.8 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.2893, allocations: 15.94 kB / 434.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.2903, allocations: 187 kB / 435 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.766e-05/0.2904, allocations: 32 kB / 435.1 MB, free: 6.477 MB / 350.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.0003406/0.2908, allocations: 233.5 kB / 435.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.2909, allocations: 63.25 kB / 435.3 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.2911, allocations: 70.41 kB / 435.4 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.2911, allocations: 12 kB / 435.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.2911, allocations: 0 / 435.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.2911, allocations: 0 / 435.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/0.2944, allocations: 1.681 MB / 437.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.2944, allocations: 4 kB / 437.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00081/0.2952, allocations: 147.7 kB / 437.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.2952, allocations: 4 kB / 437.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.181e-05/0.2953, allocations: 15.98 kB / 437.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.2953, allocations: 4 kB / 437.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2953, allocations: 3.938 kB / 437.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003051/0.2984, allocations: 1.295 MB / 438.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.2986, allocations: 152.2 kB / 438.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.2988, allocations: 12 kB / 438.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007778/0.2995, allocations: 103.9 kB / 438.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.2997, allocations: 48.31 kB / 438.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.323e-05/0.2997, allocations: 19.98 kB / 438.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005721/0.3003, allocations: 398.8 kB / 439.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3003, allocations: 0 / 439.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000725/0.3011, allocations: 179.7 kB / 439.5 MB, free: 1.949 MB / 350.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.0034/0.3045, allocations: 1.859 MB / 441.3 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.3069, allocations: 0.9926 MB / 442.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.307, allocations: 0 / 442.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009835/0.3079, allocations: 419.2 kB / 442.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006797/0.3086, allocations: 118.1 kB / 442.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.3199, allocations: 6.437 MB / 449.3 MB, free: 7.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.3203, allocations: 0.8746 MB / 450.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.3207, allocations: 88.84 kB / 450.2 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.3211, allocations: 231.4 kB / 450.5 MB, free: 6.598 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3211, allocations: 0 / 450.5 MB, free: 6.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0337/0.3548, allocations: 14.73 MB / 465.2 MB, free: 8.012 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.654/9.009, allocations: 14.22 kB / 465.2 MB, free: 8.004 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)