Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 121.7 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 205.8 kB / 18.79 MB, free: 4.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.591/1.591, allocations: 230.4 MB / 250 MB, free: 9.043 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002873/0.002873, allocations: 68.08 kB / 367.3 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2938, allocations: 53.32 MB / 420.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005861/0.2997, allocations: 4.267 MB / 424.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.3021, allocations: 1.219 MB / 426.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003621/0.3025, allocations: 15.94 kB / 426.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.3028, allocations: 102.9 kB / 426.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004198/0.3032, allocations: 186.3 kB / 426.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.304, allocations: 335.5 kB / 426.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001229/0.3052, allocations: 1.085 MB / 427.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.3056, allocations: 202.6 kB / 428.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005704/0.3061, allocations: 406.8 kB / 428.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005757/0.3067, allocations: 462.2 kB / 428.9 MB, free: 56 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.3069, allocations: 124 kB / 429 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001681/0.3071, allocations: 120 kB / 429.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.3073, allocations: 219.3 kB / 429.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005613/0.3079, allocations: 450 kB / 429.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.3094, allocations: 1.226 MB / 431 MB, free: 13.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3094, allocations: 0 / 431 MB, free: 13.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3094, allocations: 7.875 kB / 431 MB, free: 13.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.3094, allocations: 0 / 431 MB, free: 13.93 MB / 350.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.003157/0.3126, allocations: 1.278 MB / 432.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3126, allocations: 8.031 kB / 432.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.3128, allocations: 88.42 kB / 432.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008729/0.3137, allocations: 485.9 kB / 432.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.399e-05/0.3137, allocations: 45.69 kB / 432.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.3138, allocations: 60.38 kB / 433 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.3162, allocations: 0.9684 MB / 433.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.3162, allocations: 0 / 433.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.352e-05/0.3163, allocations: 24 kB / 434 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.3163, allocations: 20 kB / 434 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002923/0.3192, allocations: 0.9952 MB / 435 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005748/0.325, allocations: 3.216 MB / 438.2 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.3273, allocations: 0.8888 MB / 439.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.3286, allocations: 422.9 kB / 439.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.459e-05/0.3286, allocations: 16.41 kB / 439.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001458/0.3301, allocations: 465.1 kB / 440 MB, free: 4.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.825e-06/0.3301, allocations: 0 / 440 MB, free: 4.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003492/0.3336, allocations: 1.1 MB / 441.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002358/0.3338, allocations: 372.3 kB / 441.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.3349, allocations: 0.581 MB / 442 MB, free: 2.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.632e-05/0.335, allocations: 41.64 kB / 442.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003573/0.3353, allocations: 372.5 kB / 442.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002689/0.3356, allocations: 178.5 kB / 442.6 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000281/0.3359, allocations: 142.6 kB / 442.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.3361, allocations: 370.8 kB / 443.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.3374, allocations: 409.7 kB / 443.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.3388, allocations: 0.6733 MB / 444.2 MB, free: 172 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002342/0.3412, allocations: 0.9662 MB / 445.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.3412, allocations: 3.938 kB / 445.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00305/0.3442, allocations: 1.138 MB / 446.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.512e-05/0.3443, allocations: 67.67 kB / 446.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.3443, allocations: 15.98 kB / 446.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.3443, allocations: 8 kB / 446.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.3454, allocations: 219.7 kB / 446.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.909e-05/0.3454, allocations: 11.94 kB / 446.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.3465, allocations: 195.2 kB / 446.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.739e-05/0.3466, allocations: 32 kB / 446.8 MB, free: 13.39 MB / 366.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.0004364/0.347, allocations: 229.5 kB / 447 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.3472, allocations: 75.52 kB / 447.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001988/0.3474, allocations: 70.41 kB / 447.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3474, allocations: 4 kB / 447.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3474, allocations: 4 kB / 447.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3474, allocations: 3.984 kB / 447.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003723/0.3511, allocations: 1.677 MB / 448.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3511, allocations: 0 / 448.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008088/0.3519, allocations: 147.8 kB / 449 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.844e-06/0.3519, allocations: 4 kB / 449 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.968e-05/0.352, allocations: 16 kB / 449 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.352, allocations: 0 / 449 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.352, allocations: 0 / 449 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00363/0.3556, allocations: 1.311 MB / 450.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.3558, allocations: 148.6 kB / 450.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.356, allocations: 16 kB / 450.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007712/0.3567, allocations: 103.9 kB / 450.6 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.3569, allocations: 52.31 kB / 450.7 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/0.3569, allocations: 19.98 kB / 450.7 MB, free: 9.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006371/0.3576, allocations: 402.8 kB / 451.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3576, allocations: 0 / 451.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006649/0.3582, allocations: 183.8 kB / 451.3 MB, free: 8.852 MB / 366.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.0001867/0.3584, allocations: 117.8 kB / 451.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.3611, allocations: 0.9652 MB / 452.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3611, allocations: 0 / 452.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.3622, allocations: 391.3 kB / 452.7 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006768/0.3629, allocations: 106.1 kB / 452.8 MB, free: 7.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.3656, allocations: 1.253 MB / 454.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.3661, allocations: 0.8824 MB / 455 MB, free: 5.062 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.3666, allocations: 84.86 kB / 455 MB, free: 4.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.3668, allocations: 59.42 kB / 455.1 MB, free: 4.922 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3668, allocations: 0 / 455.1 MB, free: 4.922 MB / 366.1 MB Notification: Performance of Templates: time 0.01742/0.3842, allocations: 8.912 MB / 464 MB, free: 12.07 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches