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.0009702/0.0009701, allocations: 92.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.7 MB / 247.5 MB, free: 11.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002553/0.0002552, allocations: 8 kB / 308.4 MB, free: 0.7773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08762, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003913/0.09157, allocations: 3.864 MB / 363.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.09365, allocations: 1.199 MB / 365 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.0941, allocations: 12 kB / 365 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.09435, allocations: 71.34 kB / 365.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004568/0.09481, allocations: 158.8 kB / 365.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005941/0.09542, allocations: 279.7 kB / 365.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.09644, allocations: 1.007 MB / 366.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003827/0.09683, allocations: 239.5 kB / 366.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004497/0.09729, allocations: 334.8 kB / 367.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004973/0.0978, allocations: 394.2 kB / 367.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.09793, allocations: 52 kB / 367.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.09807, allocations: 48 kB / 367.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.09822, allocations: 155.3 kB / 367.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003832/0.09861, allocations: 399.7 kB / 368.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007032/0.09932, allocations: 0.9312 MB / 369 MB, free: 4.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09933, allocations: 0 / 369 MB, free: 4.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09934, allocations: 0 / 369 MB, free: 4.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.542e-05/0.09937, allocations: 0 / 369 MB, free: 4.109 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.002812/0.1022, allocations: 1.208 MB / 370.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1022, allocations: 8.031 kB / 370.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.1024, allocations: 80 kB / 370.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006008/0.103, allocations: 477.5 kB / 370.8 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.087e-05/0.1031, allocations: 57.66 kB / 370.8 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.1032, allocations: 64.22 kB / 370.9 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002335/0.1056, allocations: 1.047 MB / 371.9 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1056, allocations: 7.875 kB / 371.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-05/0.1057, allocations: 28 kB / 372 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.1057, allocations: 20 kB / 372 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1572/0.2629, allocations: 1.148 MB / 373.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005879/0.2688, allocations: 3.283 MB / 376.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002672/0.2715, allocations: 1.033 MB / 377.5 MB, free: 17.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.2728, allocations: 497.5 kB / 377.9 MB, free: 17.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.732e-05/0.2729, allocations: 14.36 kB / 378 MB, free: 17.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.2742, allocations: 0.52 MB / 378.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.915e-06/0.2742, allocations: 0 / 378.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.00356/0.2778, allocations: 1.269 MB / 379.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.497e-05/0.2779, allocations: 374.1 kB / 380.1 MB, free: 16.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.2789, allocations: 0.5777 MB / 380.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.639e-05/0.279, allocations: 38.81 kB / 380.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.2793, allocations: 369.4 kB / 381.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.2794, allocations: 167.9 kB / 381.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.2795, allocations: 63.8 kB / 381.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.2796, allocations: 369.8 kB / 381.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.281, allocations: 463.5 kB / 382.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.2825, allocations: 0.7433 MB / 382.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00242/0.2849, allocations: 1.084 MB / 384 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.285, allocations: 1.406 kB / 384 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003198/0.2882, allocations: 1.259 MB / 385.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.049e-05/0.2882, allocations: 70.89 kB / 385.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.2883, allocations: 6.312 kB / 385.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.18e-05/0.2883, allocations: 9.719 kB / 385.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.2894, allocations: 249.4 kB / 385.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.2894, allocations: 13.64 kB / 385.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.2906, allocations: 229.9 kB / 385.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.2907, allocations: 30.7 kB / 385.8 MB, free: 13.18 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.0003268/0.291, allocations: 223.3 kB / 386 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.2912, allocations: 72.34 kB / 386.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.2914, allocations: 71.02 kB / 386.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2914, allocations: 5.812 kB / 386.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.2914, allocations: 4 kB / 386.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.2914, allocations: 3.156 kB / 386.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/0.2951, allocations: 1.789 MB / 388 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.2951, allocations: 0.5156 kB / 388 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008788/0.296, allocations: 180.2 kB / 388.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.296, allocations: 6.641 kB / 388.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.916e-05/0.296, allocations: 12.42 kB / 388.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.2961, allocations: 2.594 kB / 388.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2961, allocations: 4.109 kB / 388.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003493/0.2996, allocations: 1.482 MB / 389.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.2997, allocations: 145.3 kB / 389.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.2999, allocations: 13.25 kB / 389.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000833/0.3007, allocations: 147.8 kB / 389.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.3008, allocations: 51.91 kB / 390 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.3009, allocations: 15.98 kB / 390 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005802/0.3015, allocations: 401.9 kB / 390.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3015, allocations: 0 / 390.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006934/0.3022, allocations: 181.7 kB / 390.6 MB, free: 11.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.0001554/0.3023, allocations: 115.8 kB / 390.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002647/0.305, allocations: 1.12 MB / 391.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.305, allocations: 1.375 kB / 391.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.3061, allocations: 460.7 kB / 392.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.3068, allocations: 102.5 kB / 392.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.3093, allocations: 1.615 MB / 394 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3096, allocations: 0.8802 MB / 394.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.3099, allocations: 58.48 kB / 394.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.31, allocations: 0 / 394.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Templates: time 0.01178/0.3217, allocations: 9.219 MB / 404.1 MB, free: 396 kB / 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.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