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.00155/0.00155, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 208 kB / 19.41 MB, free: 3.648 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.408/1.408, allocations: 227.6 MB / 247.9 MB, free: 10.19 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.001866/0.001866, allocations: 59.91 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2353, allocations: 50.54 MB / 410.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00565/0.241, allocations: 4.256 MB / 414.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00214/0.2431, allocations: 1.215 MB / 415.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.2434, allocations: 15.94 kB / 415.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.2436, allocations: 102.9 kB / 415.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.2439, allocations: 190.3 kB / 416 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006486/0.2446, allocations: 331.5 kB / 416.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.2457, allocations: 1.082 MB / 417.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003464/0.246, allocations: 202.6 kB / 417.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.2464, allocations: 414.8 kB / 418 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004787/0.2469, allocations: 462.2 kB / 418.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.247, allocations: 120 kB / 418.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.2472, allocations: 120 kB / 418.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.2474, allocations: 219.4 kB / 418.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004252/0.2478, allocations: 450 kB / 419.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.249, allocations: 1.222 MB / 420.6 MB, free: 7.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.249, allocations: 0 / 420.6 MB, free: 7.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.249, allocations: 0 / 420.6 MB, free: 7.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.249, allocations: 0 / 420.6 MB, free: 7.051 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.002967/0.252, allocations: 1.281 MB / 421.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.252, allocations: 8.031 kB / 421.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.2522, allocations: 92.42 kB / 421.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006864/0.2529, allocations: 489.8 kB / 422.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.2529, allocations: 49.69 kB / 422.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.253, allocations: 52.38 kB / 422.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.2554, allocations: 0.9762 MB / 423.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2554, allocations: 0 / 423.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.298e-05/0.2555, allocations: 24 kB / 423.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.2555, allocations: 16 kB / 423.5 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/0.2586, allocations: 0.9991 MB / 424.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005139/0.2637, allocations: 3.212 MB / 427.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.2661, allocations: 0.8866 MB / 428.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.2673, allocations: 417.8 kB / 429 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.2674, allocations: 20.41 kB / 429.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.2686, allocations: 461.1 kB / 429.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.2686, allocations: 0 / 429.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003407/0.2721, allocations: 1.104 MB / 430.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003059/0.2724, allocations: 376.3 kB / 431 MB, free: 12.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/0.2732, allocations: 0.5732 MB / 431.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.79e-05/0.2733, allocations: 37.7 kB / 431.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.2736, allocations: 376.5 kB / 432 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.2738, allocations: 182.5 kB / 432.1 MB, free: 11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.274, allocations: 138.6 kB / 432.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2742, allocations: 374.8 kB / 432.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.2755, allocations: 405.7 kB / 433 MB, free: 10.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.2769, allocations: 0.6772 MB / 433.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.2794, allocations: 0.9662 MB / 434.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.2794, allocations: 3.938 kB / 434.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003009/0.2824, allocations: 1.146 MB / 435.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.322e-05/0.2825, allocations: 63.41 kB / 435.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.2825, allocations: 8 kB / 435.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.2825, allocations: 11.98 kB / 435.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2836, allocations: 219.9 kB / 436.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.2836, allocations: 15.92 kB / 436.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.2846, allocations: 195.2 kB / 436.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.334e-05/0.2847, allocations: 32 kB / 436.4 MB, free: 6.508 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.0003381/0.285, allocations: 229.5 kB / 436.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.2851, allocations: 71.58 kB / 436.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.2853, allocations: 74.41 kB / 436.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.2853, allocations: 7.984 kB / 436.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2853, allocations: 0 / 436.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.2853, allocations: 0 / 436.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00346/0.2888, allocations: 1.685 MB / 438.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2888, allocations: 0 / 438.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007911/0.2896, allocations: 147.8 kB / 438.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.2896, allocations: 4 kB / 438.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.2896, allocations: 15.98 kB / 438.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2896, allocations: 0 / 438.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2896, allocations: 0 / 438.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.2931, allocations: 1.307 MB / 439.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.2933, allocations: 148.6 kB / 440 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.396e-05/0.2934, allocations: 15.98 kB / 440 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007855/0.2941, allocations: 107.9 kB / 440.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.2943, allocations: 52.31 kB / 440.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.2943, allocations: 12 kB / 440.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006174/0.2949, allocations: 402.8 kB / 440.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2949, allocations: 0 / 440.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006201/0.2956, allocations: 187.8 kB / 440.8 MB, free: 1.965 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.0001784/0.2957, allocations: 115.2 kB / 440.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002583/0.2983, allocations: 0.9652 MB / 441.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2983, allocations: 1.125 kB / 441.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.2994, allocations: 386.2 kB / 442.2 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006158/0.3001, allocations: 114.2 kB / 442.4 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.3026, allocations: 1.253 MB / 443.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000501/0.3031, allocations: 0.8785 MB / 444.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003736/0.3034, allocations: 88.8 kB / 444.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.3037, allocations: 55.42 kB / 444.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3037, allocations: 4 kB / 444.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of Templates: time 0.01641/0.3201, allocations: 8.885 MB / 453.5 MB, free: 5.211 MB / 366.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/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