Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001483/0.001483, allocations: 174 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007456/0.0007457, allocations: 86.41 kB / 271.2 MB, free: 8.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003335, allocations: 12 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.26, allocations: 47.57 MB / 375.1 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003484/0.2635, allocations: 3.467 MB / 378.6 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.2656, allocations: 1.085 MB / 379.6 MB, free: 41.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004297/0.266, allocations: 8.594 kB / 379.6 MB, free: 41.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.2662, allocations: 72.95 kB / 379.7 MB, free: 41.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.2666, allocations: 135.5 kB / 379.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005653/0.2672, allocations: 166.2 kB / 380 MB, free: 41.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008366/0.268, allocations: 0.8466 MB / 380.9 MB, free: 40.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004218/0.2685, allocations: 234.3 kB / 381.1 MB, free: 40.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004243/0.2689, allocations: 298.3 kB / 381.4 MB, free: 40.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.2693, allocations: 363.4 kB / 381.7 MB, free: 40.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.2694, allocations: 44.72 kB / 381.8 MB, free: 40.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.2696, allocations: 47.59 kB / 381.8 MB, free: 40.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.2697, allocations: 142.2 kB / 382 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.27, allocations: 353.1 kB / 382.3 MB, free: 39.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006421/0.2707, allocations: 0.8716 MB / 383.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.2707, allocations: 4 kB / 383.2 MB, free: 39.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2707, allocations: 0 / 383.2 MB, free: 39.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.2707, allocations: 1.25 kB / 383.2 MB, free: 39.28 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00267/0.2734, allocations: 1.145 MB / 384.3 MB, free: 38.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.2735, allocations: 9.219 kB / 384.3 MB, free: 38.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.2737, allocations: 82.12 kB / 384.4 MB, free: 38.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005514/0.2742, allocations: 439.2 kB / 384.8 MB, free: 37.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.678e-05/0.2743, allocations: 45.16 kB / 384.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.2744, allocations: 52.88 kB / 384.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.2768, allocations: 1.005 MB / 385.9 MB, free: 37.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.2768, allocations: 1.188 kB / 385.9 MB, free: 37.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.636e-05/0.2769, allocations: 26.22 kB / 386 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.2769, allocations: 13.56 kB / 386 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.2798, allocations: 1.127 MB / 387.1 MB, free: 36.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/0.2838, allocations: 3.14 MB / 390.3 MB, free: 33.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.2859, allocations: 1.031 MB / 391.3 MB, free: 32.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.2869, allocations: 0.4936 MB / 391.8 MB, free: 31.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.127e-05/0.287, allocations: 8.5 kB / 391.8 MB, free: 31.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.2881, allocations: 0.5089 MB / 392.3 MB, free: 31.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.346e-06/0.2881, allocations: 0 / 392.3 MB, free: 31.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.00294/0.2911, allocations: 1.263 MB / 393.6 MB, free: 29.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.2912, allocations: 273.4 kB / 393.8 MB, free: 29.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.2918, allocations: 0.494 MB / 394.3 MB, free: 29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.895e-05/0.2919, allocations: 37.7 kB / 394.4 MB, free: 28.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.2921, allocations: 347.5 kB / 394.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.2922, allocations: 161.7 kB / 394.9 MB, free: 28.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.481e-05/0.2922, allocations: 16 kB / 394.9 MB, free: 28.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.503e-05/0.2923, allocations: 366.8 kB / 395.2 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.2933, allocations: 461.7 kB / 395.7 MB, free: 27.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.2945, allocations: 0.7041 MB / 396.4 MB, free: 26.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00215/0.2966, allocations: 1.079 MB / 397.5 MB, free: 25.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2967, allocations: 4 kB / 397.5 MB, free: 25.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002605/0.2993, allocations: 1.239 MB / 398.7 MB, free: 24.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.416e-05/0.2993, allocations: 67.39 kB / 398.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.2994, allocations: 8 kB / 398.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.2994, allocations: 12 kB / 398.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009429/0.3003, allocations: 252 kB / 399 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.3004, allocations: 19.92 kB / 399.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.3014, allocations: 211.1 kB / 399.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-05/0.3015, allocations: 35.98 kB / 399.3 MB, free: 23.76 MB / 298.7 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002867/0.3018, allocations: 209.6 kB / 399.5 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.363e-05/0.3019, allocations: 59.34 kB / 399.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.302, allocations: 65.58 kB / 399.6 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.302, allocations: 7.938 kB / 399.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.302, allocations: 0 / 399.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.302, allocations: 7.938 kB / 399.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.3048, allocations: 1.775 MB / 401.4 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3049, allocations: 0 / 401.4 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007082/0.3056, allocations: 175.8 kB / 401.6 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.3056, allocations: 4 kB / 401.6 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.3056, allocations: 15.92 kB / 401.6 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3056, allocations: 4 kB / 401.6 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3057, allocations: 0 / 401.6 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.3086, allocations: 1.466 MB / 403.1 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.3087, allocations: 140.2 kB / 403.2 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.043e-05/0.3088, allocations: 12 kB / 403.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007038/0.3095, allocations: 143.9 kB / 403.4 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.3097, allocations: 52.36 kB / 403.4 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.13e-05/0.3097, allocations: 15.98 kB / 403.4 MB, free: 19.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004509/0.3102, allocations: 342.9 kB / 403.8 MB, free: 19.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3102, allocations: 0 / 403.8 MB, free: 19.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005841/0.3108, allocations: 167.8 kB / 403.9 MB, free: 19.03 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002126/0.311, allocations: 123.2 kB / 404.1 MB, free: 18.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.3133, allocations: 1.106 MB / 405.2 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3133, allocations: 0 / 405.2 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009484/0.3142, allocations: 467 kB / 405.6 MB, free: 17.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006372/0.3149, allocations: 89.81 kB / 405.7 MB, free: 17.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.317, allocations: 1.458 MB / 407.2 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.3173, allocations: 0.8591 MB / 408 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.3176, allocations: 55.42 kB / 408.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of SimCode: time 1.222e-06/0.3176, allocations: 0 / 408.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of Templates: time 0.01059/0.3282, allocations: 8.569 MB / 416.6 MB, free: 6.234 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches