Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 107.8 kB / 17.16 MB, free: 6.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 194 kB / 18.08 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 223.9 MB, free: 12.52 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 47.92 kB / 280 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1198, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01633/0.1362, allocations: 13.25 MB / 339.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0266/0.1629, allocations: 19.48 MB / 359.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00239/0.1654, allocations: 63.5 kB / 359.4 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003048/0.1684, allocations: 0.9466 MB / 360.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006717/0.1752, allocations: 1.872 MB / 362.2 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004142/0.1793, allocations: 1.145 MB / 363.3 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009837/0.1892, allocations: 6.109 MB / 369.5 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000742/0.19, allocations: 400.9 kB / 369.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.1913, allocations: 0.9133 MB / 370.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009451/0.1922, allocations: 1.009 MB / 371.8 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.1924, allocations: 48 kB / 371.8 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004018/0.1964, allocations: 1.128 MB / 372.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000424/0.1969, allocations: 289.7 kB / 373.2 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001442/0.1983, allocations: 1.288 MB / 374.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005091/0.2034, allocations: 3.568 MB / 378.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2035, allocations: 4 kB / 378.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2035, allocations: 0 / 378.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.151e-05/0.2035, allocations: 0 / 378.1 MB, free: 1.168 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.1529/0.3564, allocations: 3.524 MB / 381.6 MB, free: 53.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.3565, allocations: 9.438 kB / 381.6 MB, free: 53.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00081/0.3573, allocations: 376.8 kB / 382 MB, free: 53.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004655/0.362, allocations: 2.531 MB / 384.5 MB, free: 52.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.362, allocations: 40.55 kB / 384.6 MB, free: 52.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.3622, allocations: 52.52 kB / 384.6 MB, free: 52.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.3637, allocations: 0.6996 MB / 385.3 MB, free: 52.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.3637, allocations: 0 / 385.3 MB, free: 52.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.3638, allocations: 22.95 kB / 385.3 MB, free: 52.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.3638, allocations: 21.83 kB / 385.4 MB, free: 52.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.3654, allocations: 0.7937 MB / 386.1 MB, free: 51.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005772/0.3712, allocations: 2.897 MB / 389 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.3724, allocations: 0.689 MB / 389.7 MB, free: 50.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009172/0.3733, allocations: 0.6534 MB / 390.4 MB, free: 49.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02243/0.3958, allocations: 30.17 MB / 420.6 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000682/0.3965, allocations: 364.8 kB / 420.9 MB, free: 20.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.226e-06/0.3965, allocations: 2.578 kB / 420.9 MB, free: 20.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.003123/0.3996, allocations: 1.388 MB / 422.3 MB, free: 18.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.3997, allocations: 59.41 kB / 422.4 MB, free: 18.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002882/0.4026, allocations: 2.828 MB / 425.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.529e-05/0.4026, allocations: 33.7 kB / 425.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007708/0.4034, allocations: 1.391 MB / 426.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.4035, allocations: 165.7 kB / 426.8 MB, free: 14.1 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.4038, allocations: 222.2 kB / 427 MB, free: 13.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.135e-05/0.4039, allocations: 341.8 kB / 427.3 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005016/0.4044, allocations: 241.8 kB / 427.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006137/0.405, allocations: 0.5867 MB / 428.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.4061, allocations: 0.8851 MB / 429 MB, free: 11.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.4061, allocations: 4 kB / 429 MB, free: 11.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002027/0.4081, allocations: 1.279 MB / 430.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4082, allocations: 8 kB / 430.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.639e-05/0.4083, allocations: 83.98 kB / 430.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004995/0.4088, allocations: 281.1 kB / 430.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.4093, allocations: 171.7 kB / 430.9 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007783/0.4101, allocations: 0.8866 MB / 431.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.4114, allocations: 117.8 kB / 431.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.249e-05/0.4115, allocations: 67.98 kB / 431.9 MB, free: 8.609 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006537/0.4121, allocations: 413.5 kB / 432.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003593/0.4125, allocations: 367.6 kB / 432.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.4152, allocations: 1.281 MB / 434 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4152, allocations: 4 kB / 434 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4152, allocations: 0 / 434 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.4152, allocations: 3.984 kB / 434 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.4183, allocations: 2.203 MB / 436.2 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.798e-05/0.4184, allocations: 72 kB / 436.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003018/0.4187, allocations: 63.88 kB / 436.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004107/0.4191, allocations: 264.8 kB / 436.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-05/0.4192, allocations: 43.03 kB / 436.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006811/0.4198, allocations: 0.8595 MB / 437.5 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.4199, allocations: 7.969 kB / 437.5 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.4215, allocations: 1.133 MB / 438.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006654/0.4222, allocations: 460.5 kB / 439.1 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002973/0.4225, allocations: 16 kB / 439.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006445/0.4232, allocations: 27.97 kB / 439.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.4233, allocations: 67.88 kB / 439.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.799e-05/0.4234, allocations: 39.98 kB / 439.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002235/0.4256, allocations: 1.832 MB / 441 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.4257, allocations: 0 / 441 MB, free: 15.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001545/0.4272, allocations: 0.5777 MB / 441.6 MB, free: 14.74 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001157/0.4284, allocations: 0.7887 MB / 442.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.4302, allocations: 0.8426 MB / 443.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4302, allocations: 4 kB / 443.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008857/0.4311, allocations: 496 kB / 443.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/0.4332, allocations: 485.4 kB / 444.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00642/0.4396, allocations: 4.724 MB / 448.9 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.4408, allocations: 1.613 MB / 450.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001398/0.4422, allocations: 385.6 kB / 450.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.4424, allocations: 163.4 kB / 451.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4424, allocations: 0 / 451.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of Templates: time 0.0546/0.497, allocations: 32.26 MB / 483.3 MB, free: 4.887 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches