Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 105.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 195 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2962, allocations: 49.45 MB / 400.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00613/0.3024, allocations: 4.212 MB / 404.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002573/0.305, allocations: 1.18 MB / 405.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004077/0.3054, allocations: 11.94 kB / 405.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002859/0.3057, allocations: 106.9 kB / 405.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000422/0.3062, allocations: 182.3 kB / 405.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000732/0.3069, allocations: 331.5 kB / 406.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.308, allocations: 1.097 MB / 407.4 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004347/0.3085, allocations: 282.6 kB / 407.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004435/0.3089, allocations: 402.8 kB / 408 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000498/0.3094, allocations: 470.2 kB / 408.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.3096, allocations: 116 kB / 408.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.3097, allocations: 120 kB / 408.7 MB, free: 424 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.3099, allocations: 219.4 kB / 408.9 MB, free: 204 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004092/0.3103, allocations: 458 kB / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.3115, allocations: 1.217 MB / 410.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3115, allocations: 3.984 kB / 410.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3115, allocations: 3.938 kB / 410.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.3115, allocations: 0 / 410.6 MB, free: 14.52 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.002946/0.3145, allocations: 1.259 MB / 411.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3145, allocations: 8.031 kB / 411.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000146/0.3147, allocations: 102.7 kB / 412 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3148, allocations: 84 kB / 412 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000726/0.3156, allocations: 485.5 kB / 412.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/0.3156, allocations: 45.69 kB / 412.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.3157, allocations: 60.38 kB / 412.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.318, allocations: 0.9681 MB / 413.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.318, allocations: 4 kB / 413.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.399e-05/0.3181, allocations: 28 kB / 413.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.3181, allocations: 16 kB / 413.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003053/0.3211, allocations: 1.003 MB / 414.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005038/0.3262, allocations: 3.184 MB / 417.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.3287, allocations: 0.9103 MB / 418.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.3299, allocations: 437.8 kB / 419.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.33, allocations: 20.48 kB / 419.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.3313, allocations: 465.1 kB / 419.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.836e-06/0.3313, allocations: 0 / 419.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003476/0.3348, allocations: 1.095 MB / 420.7 MB, free: 4.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002155/0.335, allocations: 376.3 kB / 421.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009849/0.336, allocations: 0.5809 MB / 421.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.3361, allocations: 37.7 kB / 421.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.3364, allocations: 367.6 kB / 422.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.3366, allocations: 165.7 kB / 422.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000272/0.3369, allocations: 142.6 kB / 422.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.337, allocations: 378.8 kB / 422.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3383, allocations: 401.7 kB / 423.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/0.3397, allocations: 0.6772 MB / 423.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.3423, allocations: 0.97 MB / 424.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3423, allocations: 0 / 424.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003103/0.3454, allocations: 1.142 MB / 425.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.03e-05/0.3455, allocations: 67.39 kB / 426 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.3455, allocations: 8 kB / 426 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.3455, allocations: 8 kB / 426 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.3466, allocations: 215.6 kB / 426.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.3466, allocations: 20.02 kB / 426.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.3477, allocations: 187 kB / 426.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.481e-05/0.3479, allocations: 32 kB / 426.5 MB, free: 13.91 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.0003575/0.3482, allocations: 229.9 kB / 426.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.3484, allocations: 67.25 kB / 426.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001847/0.3486, allocations: 70.41 kB / 426.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3486, allocations: 4 kB / 426.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3486, allocations: 4 kB / 426.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3486, allocations: 3.984 kB / 426.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.3521, allocations: 1.681 MB / 428.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.3522, allocations: 3.984 kB / 428.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008252/0.353, allocations: 151.8 kB / 428.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.353, allocations: 0 / 428.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.3531, allocations: 15.98 kB / 428.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.3531, allocations: 7.984 kB / 428.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3531, allocations: 3.938 kB / 428.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003477/0.3566, allocations: 1.295 MB / 430 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.3568, allocations: 144.3 kB / 430.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.3569, allocations: 12 kB / 430.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008164/0.3577, allocations: 103.9 kB / 430.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.3579, allocations: 52.31 kB / 430.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.594e-05/0.358, allocations: 19.98 kB / 430.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006344/0.3586, allocations: 402.8 kB / 430.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3586, allocations: 0 / 430.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006921/0.3593, allocations: 179.7 kB / 430.9 MB, free: 9.383 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.004018/0.3633, allocations: 1.863 MB / 432.7 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002835/0.3662, allocations: 0.9926 MB / 433.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.3662, allocations: 0 / 433.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.3674, allocations: 411.3 kB / 434.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007023/0.3681, allocations: 114.2 kB / 434.2 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.3812, allocations: 6.457 MB / 440.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.3817, allocations: 0.8824 MB / 441.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000443/0.3822, allocations: 80.86 kB / 441.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.3826, allocations: 231.4 kB / 441.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3826, allocations: 0 / 441.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05385/0.4365, allocations: 14.69 MB / 456.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/13.98, allocations: 8.422 kB / 456.6 MB, free: 15.48 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)