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.001629/0.001629, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 247.1 MB, free: 10.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 67.48 kB / 307.1 MB, free: 0.9102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1025, allocations: 50.53 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005745/0.1083, allocations: 4.275 MB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.1107, allocations: 1.203 MB / 363.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003578/0.1111, allocations: 8 kB / 363.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.1114, allocations: 79.33 kB / 363.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.1118, allocations: 146.8 kB / 363.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006939/0.1126, allocations: 295.7 kB / 363.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1137, allocations: 1.089 MB / 364.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004513/0.1142, allocations: 282.6 kB / 365 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004905/0.1147, allocations: 398.8 kB / 365.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005274/0.1152, allocations: 466.2 kB / 365.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001641/0.1154, allocations: 120 kB / 366 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.1156, allocations: 120 kB / 366.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.1158, allocations: 223.3 kB / 366.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004234/0.1162, allocations: 454 kB / 366.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009535/0.1172, allocations: 0.9667 MB / 367.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1172, allocations: 0 / 367.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1172, allocations: 0 / 367.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.1172, allocations: 0 / 367.7 MB, free: 4.27 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.002967/0.1202, allocations: 1.269 MB / 369 MB, free: 2.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1202, allocations: 8.031 kB / 369 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.1204, allocations: 84 kB / 369.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006223/0.1211, allocations: 485.4 kB / 369.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.142e-05/0.1211, allocations: 45.69 kB / 369.6 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.1212, allocations: 56.38 kB / 369.7 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002275/0.1235, allocations: 0.9684 MB / 370.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1236, allocations: 0 / 370.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.1236, allocations: 24 kB / 370.7 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.1237, allocations: 16 kB / 370.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002902/0.1266, allocations: 1.003 MB / 371.7 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1668/0.2934, allocations: 3.2 MB / 374.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.2957, allocations: 0.9202 MB / 375.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/0.2969, allocations: 440.8 kB / 376.2 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.654e-05/0.297, allocations: 10.31 kB / 376.2 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.2982, allocations: 464.9 kB / 376.7 MB, free: 17.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.106e-06/0.2982, allocations: 0 / 376.7 MB, free: 17.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003138/0.3014, allocations: 1.104 MB / 377.8 MB, free: 17.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3015, allocations: 370 kB / 378.2 MB, free: 16.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008671/0.3024, allocations: 0.5796 MB / 378.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.351e-05/0.3025, allocations: 38.86 kB / 378.8 MB, free: 16.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002251/0.3027, allocations: 364.9 kB / 379.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.3028, allocations: 170.7 kB / 379.3 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.3031, allocations: 144.5 kB / 379.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.3032, allocations: 374.2 kB / 379.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.3044, allocations: 403.1 kB / 380.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.3057, allocations: 0.6754 MB / 380.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002065/0.3077, allocations: 0.9764 MB / 381.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3077, allocations: 0 / 381.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002757/0.3105, allocations: 1.135 MB / 383 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.3106, allocations: 70.8 kB / 383.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.3106, allocations: 6.344 kB / 383.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.3106, allocations: 9.906 kB / 383.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.3117, allocations: 221.9 kB / 383.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.362e-05/0.3117, allocations: 16.67 kB / 383.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.3129, allocations: 186.6 kB / 383.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-05/0.3129, allocations: 34.89 kB / 383.5 MB, free: 14.09 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.0003443/0.3133, allocations: 222.2 kB / 383.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.3134, allocations: 67.72 kB / 383.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.3136, allocations: 75.45 kB / 383.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3136, allocations: 5.812 kB / 383.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.3136, allocations: 0.8906 kB / 383.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.3136, allocations: 1.875 kB / 383.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.317, allocations: 1.673 MB / 385.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.317, allocations: 0.6562 kB / 385.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.3178, allocations: 153.7 kB / 385.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.3178, allocations: 2.094 kB / 385.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.3179, allocations: 10.16 kB / 385.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3179, allocations: 2.078 kB / 385.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3179, allocations: 0 / 385.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003091/0.321, allocations: 1.299 MB / 387 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.3212, allocations: 148.7 kB / 387.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.3213, allocations: 21.33 kB / 387.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007579/0.3221, allocations: 106.8 kB / 387.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.3222, allocations: 51.62 kB / 387.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-05/0.3223, allocations: 18.42 kB / 387.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005725/0.3229, allocations: 405.7 kB / 387.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3229, allocations: 1.062 kB / 387.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007705/0.3236, allocations: 176.2 kB / 387.9 MB, free: 12.03 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.0001665/0.3238, allocations: 115.6 kB / 388 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.3263, allocations: 1.02 MB / 389.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.3264, allocations: 5.219 kB / 389.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009845/0.3274, allocations: 403.2 kB / 389.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.328, allocations: 101 kB / 389.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.3304, allocations: 1.53 MB / 391.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.3307, allocations: 0.8768 MB / 392 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000316/0.331, allocations: 64.8 kB / 392 MB, free: 9.285 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.331, allocations: 0 / 392 MB, free: 9.285 MB / 302.1 MB Notification: Performance of Templates: time 0.01265/0.3436, allocations: 9.266 MB / 401.3 MB, free: 2.887 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/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_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches