Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001072/0.001072, allocations: 174.8 kB / 18.04 MB, free: 3.773 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.382/1.382, allocations: 205.4 MB / 224.2 MB, free: 8.914 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.0007951/0.000795, allocations: 85.05 kB / 272.5 MB, free: 8.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.0003698, allocations: 16 kB / 329.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.231, allocations: 47.57 MB / 377 MB, free: 45.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08805/0.3191, allocations: 79.74 MB / 456.8 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.3194, allocations: 71.97 kB / 456.8 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02878/0.3482, allocations: 10.28 MB / 467.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3482, allocations: 0 / 467.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.497e-05/0.3483, allocations: 12 kB / 467.1 MB, free: 6.383 MB / 346.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.002802/0.3511, allocations: 1.124 MB / 468.2 MB, free: 5.191 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3512, allocations: 8.031 kB / 468.3 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.3514, allocations: 76.09 kB / 468.3 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.3522, allocations: 445.7 kB / 468.8 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.188e-05/0.3522, allocations: 45.69 kB / 468.8 MB, free: 4.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.3524, allocations: 56.38 kB / 468.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/0.3547, allocations: 1 MB / 469.9 MB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3547, allocations: 192 / 469.9 MB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.3548, allocations: 27.94 kB / 469.9 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.3549, allocations: 12 kB / 469.9 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002985/0.3578, allocations: 1.124 MB / 471 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005174/0.363, allocations: 3.173 MB / 474.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/0.3656, allocations: 1.039 MB / 475.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.3668, allocations: 497.4 kB / 475.7 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.073e-05/0.3669, allocations: 16.56 kB / 475.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.3681, allocations: 0.5127 MB / 476.3 MB, free: 12.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 4.368e-06/0.3681, allocations: 3.938 kB / 476.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.003282/0.3714, allocations: 1.256 MB / 477.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.3716, allocations: 269.5 kB / 477.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008478/0.3724, allocations: 0.494 MB / 478.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.3725, allocations: 41.7 kB / 478.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.3728, allocations: 335.6 kB / 478.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.373, allocations: 169.5 kB / 478.8 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.016e-05/0.3731, allocations: 16 kB / 478.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3733, allocations: 370.7 kB / 479.2 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.3745, allocations: 457.7 kB / 479.6 MB, free: 9.426 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.3759, allocations: 0.7042 MB / 480.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/0.3784, allocations: 1.083 MB / 481.4 MB, free: 7.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.3784, allocations: 0 / 481.4 MB, free: 7.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003067/0.3815, allocations: 1.243 MB / 482.7 MB, free: 6.164 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.134e-05/0.3816, allocations: 59.41 kB / 482.7 MB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3816, allocations: 8 kB / 482.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.3816, allocations: 8 kB / 482.7 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.3827, allocations: 255.9 kB / 483 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.3827, allocations: 12.08 kB / 483 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.3839, allocations: 223 kB / 483.2 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.637e-05/0.384, allocations: 39.92 kB / 483.3 MB, free: 5.559 MB / 362.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.0004233/0.3844, allocations: 213.6 kB / 483.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.3845, allocations: 59.34 kB / 483.5 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.3847, allocations: 61.59 kB / 483.6 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3847, allocations: 8 kB / 483.6 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3848, allocations: 0 / 483.6 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.3848, allocations: 7.922 kB / 483.6 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/0.3884, allocations: 1.763 MB / 485.4 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.3885, allocations: 4 kB / 485.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008043/0.3893, allocations: 171.8 kB / 485.5 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/0.3893, allocations: 7.938 kB / 485.5 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.3894, allocations: 12 kB / 485.6 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3894, allocations: 0 / 485.6 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3894, allocations: 4 kB / 485.6 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.3929, allocations: 1.462 MB / 487 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.3931, allocations: 140.3 kB / 487.2 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.3933, allocations: 15.94 kB / 487.2 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007947/0.3941, allocations: 139.9 kB / 487.3 MB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.3943, allocations: 56.3 kB / 487.4 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.295e-05/0.3943, allocations: 16 kB / 487.4 MB, free: 1.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005643/0.3949, allocations: 346.8 kB / 487.7 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3949, allocations: 0 / 487.7 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007092/0.3956, allocations: 183.7 kB / 487.9 MB, free: 0.8164 MB / 362.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.000194/0.3958, allocations: 119.2 kB / 488 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002773/0.3986, allocations: 1.106 MB / 489.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3986, allocations: 0 / 489.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.3998, allocations: 479.2 kB / 489.6 MB, free: 15.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007432/0.4006, allocations: 73.94 kB / 489.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.4033, allocations: 1.413 MB / 491.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.4038, allocations: 0.8591 MB / 491.9 MB, free: 12.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005316/0.4043, allocations: 84.64 kB / 492 MB, free: 12.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.4046, allocations: 43.44 kB / 492.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4046, allocations: 3.938 kB / 492.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of Templates: time 0.01365/0.4182, allocations: 7.232 MB / 499.3 MB, free: 5.348 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/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_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches