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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_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.001258/0.001258, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001374/0.001374, allocations: 191 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 59.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005735/0.1093, allocations: 4.034 MB / 378.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2024/0.3118, allocations: 1.12 MB / 379.8 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006843/0.3125, allocations: 8.5 kB / 379.8 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002984/0.3129, allocations: 97.42 kB / 379.9 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003679/0.3133, allocations: 167.9 kB / 380.1 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006122/0.3139, allocations: 281.4 kB / 380.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008851/0.3148, allocations: 0.9688 MB / 381.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.3152, allocations: 275.9 kB / 381.6 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004767/0.3157, allocations: 379.6 kB / 382 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005482/0.3162, allocations: 440.1 kB / 382.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002251/0.3165, allocations: 117.5 kB / 382.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.3167, allocations: 113.2 kB / 382.6 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.3169, allocations: 212.9 kB / 382.8 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000335/0.3172, allocations: 412.4 kB / 383.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.3184, allocations: 1.139 MB / 384.4 MB, free: 8.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3185, allocations: 0 / 384.4 MB, free: 8.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3185, allocations: 0 / 384.4 MB, free: 8.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.3185, allocations: 1.281 kB / 384.4 MB, free: 8.352 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.002819/0.3213, allocations: 1.197 MB / 385.6 MB, free: 7.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3214, allocations: 8.875 kB / 385.6 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.3215, allocations: 93.05 kB / 385.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.3216, allocations: 73.91 kB / 385.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.3223, allocations: 447.2 kB / 386.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.107e-05/0.3223, allocations: 45.36 kB / 386.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.3224, allocations: 53.39 kB / 386.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/0.3247, allocations: 0.9311 MB / 387.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3248, allocations: 1.094 kB / 387.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.583e-05/0.3248, allocations: 23.53 kB / 387.2 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.3249, allocations: 13.47 kB / 387.2 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003095/0.328, allocations: 0.9763 MB / 388.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004806/0.3328, allocations: 3.057 MB / 391.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.3352, allocations: 0.9117 MB / 392.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.3365, allocations: 437.9 kB / 392.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.968e-05/0.3366, allocations: 20.16 kB / 392.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001286/0.3379, allocations: 455.2 kB / 393.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.846e-06/0.3379, allocations: 0 / 393.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.0035/0.3414, allocations: 1.089 MB / 394.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/0.3415, allocations: 273.8 kB / 394.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008605/0.3424, allocations: 0.5018 MB / 394.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.3424, allocations: 38.64 kB / 395 MB, free: 2.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/0.3427, allocations: 341.3 kB / 395.3 MB, free: 2.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3428, allocations: 168.3 kB / 395.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.3431, allocations: 135.3 kB / 395.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3432, allocations: 366.5 kB / 395.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.3444, allocations: 400.6 kB / 396.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.3458, allocations: 0.6511 MB / 397 MB, free: 1.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/0.3484, allocations: 0.9732 MB / 398 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.3484, allocations: 1.375 kB / 398 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003185/0.3516, allocations: 1.132 MB / 399.1 MB, free: 208 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.109e-05/0.3516, allocations: 61.03 kB / 399.2 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.3517, allocations: 6.875 kB / 399.2 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.96e-05/0.3517, allocations: 9.625 kB / 399.2 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.3527, allocations: 226.9 kB / 399.4 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.969e-05/0.3527, allocations: 14.94 kB / 399.4 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.3539, allocations: 175.7 kB / 399.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.354, allocations: 29.81 kB / 399.6 MB, free: 15.97 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.0003915/0.3544, allocations: 220.6 kB / 399.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.3545, allocations: 60.44 kB / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.3547, allocations: 66.23 kB / 399.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.3547, allocations: 12.94 kB / 400 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.3548, allocations: 4.625 kB / 400 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3548, allocations: 2.938 kB / 400 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003692/0.3585, allocations: 1.636 MB / 401.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3585, allocations: 0 / 401.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008237/0.3593, allocations: 153.2 kB / 401.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.3593, allocations: 2.219 kB / 401.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.3594, allocations: 11.33 kB / 401.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.3594, allocations: 2.25 kB / 401.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3594, allocations: 0 / 401.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0036/0.363, allocations: 1.293 MB / 403.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.3633, allocations: 139 kB / 403.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.3635, allocations: 13.16 kB / 403.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00078/0.3642, allocations: 99.52 kB / 403.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3644, allocations: 53.38 kB / 403.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.3645, allocations: 18.08 kB / 403.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005943/0.3651, allocations: 351.5 kB / 403.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3651, allocations: 0 / 403.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.3658, allocations: 165.2 kB / 403.9 MB, free: 13.32 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.003817/0.3696, allocations: 1.855 MB / 405.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002849/0.3725, allocations: 0.9904 MB / 406.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3725, allocations: 5.375 kB / 406.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.3737, allocations: 418.9 kB / 407.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.3744, allocations: 93.08 kB / 407.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/0.3869, allocations: 6.162 MB / 413.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.3874, allocations: 0.8549 MB / 414.2 MB, free: 6.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004511/0.3878, allocations: 77.75 kB / 414.3 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.3882, allocations: 211.4 kB / 414.5 MB, free: 5.746 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3882, allocations: 0 / 414.5 MB, free: 5.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06311/0.4514, allocations: 13.58 MB / 428.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.52, allocations: 3.859 kB / 428.1 MB, free: 8.102 MB / 350.1 MB (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 --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)