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.00166/0.00166, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001965/0.001965, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 71.88 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2695, allocations: 50.53 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005054/0.2746, allocations: 4.245 MB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.2767, allocations: 1.215 MB / 415.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002216/0.277, allocations: 8 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.2772, allocations: 102.9 kB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003078/0.2775, allocations: 178.3 kB / 415.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006118/0.2781, allocations: 339.5 kB / 416 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.2792, allocations: 1.089 MB / 417.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004044/0.2796, allocations: 278.6 kB / 417.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004023/0.28, allocations: 410.8 kB / 417.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.2805, allocations: 462.2 kB / 418.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.2806, allocations: 124 kB / 418.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.2808, allocations: 116 kB / 418.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.2809, allocations: 231.3 kB / 418.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003489/0.2813, allocations: 446 kB / 419.1 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009644/0.2823, allocations: 1.212 MB / 420.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.2823, allocations: 4 kB / 420.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2823, allocations: 0 / 420.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.2823, allocations: 4 kB / 420.3 MB, free: 7.168 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.002767/0.2851, allocations: 1.263 MB / 421.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.2851, allocations: 12.03 kB / 421.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.2853, allocations: 80 kB / 421.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00068/0.286, allocations: 481.5 kB / 422.2 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.031e-05/0.286, allocations: 49.69 kB / 422.2 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.2861, allocations: 56.38 kB / 422.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.2882, allocations: 0.9722 MB / 423.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2882, allocations: 0 / 423.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/0.2883, allocations: 32 kB / 423.3 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.2883, allocations: 16 kB / 423.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002872/0.2912, allocations: 1.003 MB / 424.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004427/0.2957, allocations: 3.192 MB / 427.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/0.298, allocations: 0.9158 MB / 428.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.2992, allocations: 445.7 kB / 428.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.151e-05/0.2992, allocations: 20.33 kB / 428.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.3004, allocations: 469 kB / 429.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.555e-06/0.3005, allocations: 0 / 429.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003192/0.3036, allocations: 1.088 MB / 430.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/0.3038, allocations: 376.3 kB / 430.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007165/0.3046, allocations: 0.5809 MB / 431.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/0.3046, allocations: 37.7 kB / 431.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.3049, allocations: 371.5 kB / 431.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.305, allocations: 173.6 kB / 431.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.3052, allocations: 138.5 kB / 432 MB, free: 10.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3054, allocations: 374.8 kB / 432.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.3066, allocations: 405.7 kB / 432.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.308, allocations: 0.6772 MB / 433.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002256/0.3102, allocations: 0.9662 MB / 434.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.3102, allocations: 7.875 kB / 434.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002792/0.313, allocations: 1.138 MB / 435.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.189e-05/0.3131, allocations: 63.41 kB / 435.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3131, allocations: 8 kB / 435.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.3131, allocations: 8 kB / 435.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009985/0.3141, allocations: 223.6 kB / 435.9 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.3142, allocations: 8 kB / 435.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009702/0.3152, allocations: 191 kB / 436.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/0.3152, allocations: 39.97 kB / 436.1 MB, free: 6.633 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.0002776/0.3155, allocations: 229.5 kB / 436.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.426e-05/0.3156, allocations: 63.25 kB / 436.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.3158, allocations: 70.41 kB / 436.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3158, allocations: 4 kB / 436.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3158, allocations: 4 kB / 436.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3158, allocations: 3.984 kB / 436.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.319, allocations: 1.677 MB / 438.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.319, allocations: 3.984 kB / 438.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007456/0.3197, allocations: 143.8 kB / 438.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.3198, allocations: 4 kB / 438.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.3198, allocations: 16 kB / 438.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3198, allocations: 0 / 438.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3198, allocations: 0 / 438.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.3231, allocations: 1.303 MB / 439.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.3233, allocations: 148.2 kB / 439.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.939e-05/0.3234, allocations: 16 kB / 439.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007415/0.3241, allocations: 107.9 kB / 439.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.3243, allocations: 52.3 kB / 440 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.3243, allocations: 19.92 kB / 440 MB, free: 2.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005224/0.3248, allocations: 402.8 kB / 440.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3248, allocations: 0 / 440.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005539/0.3254, allocations: 179.8 kB / 440.5 MB, free: 2.105 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.0001558/0.3256, allocations: 115.2 kB / 440.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.328, allocations: 1 MB / 441.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.328, allocations: 0 / 441.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3291, allocations: 407.3 kB / 442.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.3296, allocations: 98.2 kB / 442.2 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.3319, allocations: 1.276 MB / 443.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.3323, allocations: 0.894 MB / 444.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/0.3325, allocations: 63.42 kB / 444.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3326, allocations: 0 / 444.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of Templates: time 0.01135/0.3439, allocations: 9.408 MB / 453.8 MB, free: 4.793 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches