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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 93.56 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.634/1.634, allocations: 227.8 MB / 246.8 MB, free: 9.652 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002635, allocations: 11.98 kB / 307.7 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 51.52 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00503/0.1261, allocations: 3.852 MB / 363.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002756/0.1288, allocations: 1.211 MB / 364.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006918/0.1296, allocations: 8 kB / 364.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003511/0.1299, allocations: 75.33 kB / 364.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000831/0.1308, allocations: 150.8 kB / 364.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008554/0.1317, allocations: 287.7 kB / 364.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001805/0.1335, allocations: 1.011 MB / 365.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005177/0.134, allocations: 239.5 kB / 366.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004991/0.1345, allocations: 326.8 kB / 366.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004258/0.135, allocations: 398.2 kB / 366.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.025e-05/0.1351, allocations: 48 kB / 366.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.1352, allocations: 52 kB / 366.9 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1353, allocations: 155.3 kB / 367 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003892/0.1357, allocations: 399.7 kB / 367.4 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.1368, allocations: 1.125 MB / 368.5 MB, free: 3.727 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1368, allocations: 0 / 368.5 MB, free: 3.727 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1368, allocations: 0 / 368.5 MB, free: 3.727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1368, allocations: 0 / 368.5 MB, free: 3.727 MB / 302.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.002745/0.1396, allocations: 1.208 MB / 369.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.1396, allocations: 12.03 kB / 369.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.1398, allocations: 80 kB / 369.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.1405, allocations: 477.6 kB / 370.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.1405, allocations: 45.62 kB / 370.4 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.1407, allocations: 68.27 kB / 370.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.1431, allocations: 1.043 MB / 371.5 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.1432, allocations: 3.938 kB / 371.5 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-05/0.1432, allocations: 28 kB / 371.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.1433, allocations: 20 kB / 371.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.262/0.4053, allocations: 1.147 MB / 372.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006464/0.4118, allocations: 3.285 MB / 376 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/0.415, allocations: 1.035 MB / 377 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.4164, allocations: 496.6 kB / 377.5 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.379e-05/0.4165, allocations: 18.73 kB / 377.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.4179, allocations: 0.5176 MB / 378 MB, free: 16.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.739e-06/0.4179, allocations: 0 / 378 MB, free: 16.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.004028/0.4219, allocations: 1.269 MB / 379.3 MB, free: 16.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.4221, allocations: 374.9 kB / 379.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.4231, allocations: 0.577 MB / 380.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.152e-05/0.4232, allocations: 38.52 kB / 380.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.4235, allocations: 371.6 kB / 380.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.4237, allocations: 167.5 kB / 380.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.4238, allocations: 63.97 kB / 380.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4239, allocations: 370.7 kB / 381.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.4254, allocations: 466.8 kB / 381.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.427, allocations: 0.7438 MB / 382.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.4299, allocations: 1.085 MB / 383.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.4299, allocations: 2.75 kB / 383.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003513/0.4334, allocations: 1.259 MB / 384.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/0.4335, allocations: 67.06 kB / 384.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.4335, allocations: 10.34 kB / 384.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.4336, allocations: 9.031 kB / 384.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.4347, allocations: 245.2 kB / 385.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.241e-05/0.4347, allocations: 18.72 kB / 385.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.436, allocations: 229.7 kB / 385.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.968e-05/0.4361, allocations: 31.06 kB / 385.4 MB, free: 12.92 MB / 302.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.0003799/0.4365, allocations: 222.3 kB / 385.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.4366, allocations: 72.73 kB / 385.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.4367, allocations: 70.94 kB / 385.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.076e-06/0.4368, allocations: 5.062 kB / 385.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/0.4368, allocations: 3.281 kB / 385.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.4368, allocations: 6.109 kB / 385.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.4406, allocations: 1.789 MB / 387.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.4406, allocations: 1.188 kB / 387.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008244/0.4414, allocations: 179.2 kB / 387.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.308e-06/0.4414, allocations: 1.812 kB / 387.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.883e-05/0.4415, allocations: 12.95 kB / 387.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.4415, allocations: 2.156 kB / 387.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4415, allocations: 3.391 kB / 387.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/0.4453, allocations: 1.482 MB / 389.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.4454, allocations: 145.1 kB / 389.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4456, allocations: 13.69 kB / 389.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000805/0.4464, allocations: 152.6 kB / 389.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4465, allocations: 47.25 kB / 389.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.4465, allocations: 18.48 kB / 389.6 MB, free: 11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005937/0.4471, allocations: 402.4 kB / 390 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4472, allocations: 0 / 390 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006998/0.4479, allocations: 181.7 kB / 390.1 MB, free: 10.73 MB / 302.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.0001606/0.448, allocations: 121.7 kB / 390.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002811/0.4508, allocations: 1.12 MB / 391.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4509, allocations: 1.375 kB / 391.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.452, allocations: 465.5 kB / 391.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006605/0.4527, allocations: 103.2 kB / 391.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.4551, allocations: 1.58 MB / 393.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.4554, allocations: 0.8807 MB / 394.4 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004185/0.4558, allocations: 82.81 kB / 394.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002072/0.4561, allocations: 51.38 kB / 394.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4561, allocations: 4 kB / 394.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of Templates: time 0.01183/0.4679, allocations: 7.941 MB / 402.5 MB, free: 1.324 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches