Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001388, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.48/1.48, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003045/0.003045, allocations: 64.16 kB / 307.9 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1086, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006063/0.1147, allocations: 4.25 MB / 362.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.1173, allocations: 1.211 MB / 363.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000457/0.1178, allocations: 16 kB / 363.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003772/0.1182, allocations: 106.8 kB / 364 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005923/0.1188, allocations: 174.3 kB / 364.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000772/0.1196, allocations: 323.5 kB / 364.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1209, allocations: 1.101 MB / 365.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.1214, allocations: 286.6 kB / 365.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000506/0.1219, allocations: 402.8 kB / 366.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000527/0.1224, allocations: 466.2 kB / 366.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.1226, allocations: 120 kB / 366.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.1228, allocations: 120 kB / 367 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.123, allocations: 227.3 kB / 367.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.1234, allocations: 454 kB / 367.6 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.1246, allocations: 1.211 MB / 368.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1246, allocations: 0 / 368.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1246, allocations: 0 / 368.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1247, allocations: 0 / 368.8 MB, free: 3.469 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.003078/0.1277, allocations: 1.259 MB / 370.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1278, allocations: 12.03 kB / 370.1 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.128, allocations: 80 kB / 370.2 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006535/0.1286, allocations: 477.5 kB / 370.6 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.1287, allocations: 45.69 kB / 370.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.1288, allocations: 60.38 kB / 370.8 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002318/0.1311, allocations: 0.9723 MB / 371.7 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1312, allocations: 0 / 371.7 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.843e-05/0.1312, allocations: 28 kB / 371.8 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.1313, allocations: 16 kB / 371.8 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1621/0.2934, allocations: 0.9947 MB / 372.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005023/0.2984, allocations: 3.201 MB / 376 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.301, allocations: 0.9136 MB / 376.9 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.3023, allocations: 449.1 kB / 377.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.403e-05/0.3024, allocations: 14.17 kB / 377.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001395/0.3038, allocations: 474.7 kB / 377.8 MB, free: 17.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.106e-06/0.3038, allocations: 0 / 377.8 MB, free: 17.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003463/0.3073, allocations: 1.095 MB / 378.9 MB, free: 17.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.3074, allocations: 373.1 kB / 379.3 MB, free: 16.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008905/0.3083, allocations: 0.5724 MB / 379.8 MB, free: 16.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.745e-05/0.3084, allocations: 40.06 kB / 379.9 MB, free: 16.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00025/0.3087, allocations: 371.1 kB / 380.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3088, allocations: 170.7 kB / 380.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.3091, allocations: 141 kB / 380.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3092, allocations: 373.8 kB / 380.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.3104, allocations: 402.9 kB / 381.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/0.3119, allocations: 0.6764 MB / 382 MB, free: 14.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/0.3141, allocations: 0.9685 MB / 382.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3141, allocations: 2.906 kB / 382.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002925/0.3171, allocations: 1.143 MB / 384.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/0.3171, allocations: 68.59 kB / 384.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.3172, allocations: 6.344 kB / 384.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.3172, allocations: 9.688 kB / 384.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.3183, allocations: 226 kB / 384.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.3183, allocations: 12.38 kB / 384.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.3194, allocations: 186.6 kB / 384.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/0.3195, allocations: 31.25 kB / 384.6 MB, free: 13.8 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.0002858/0.3198, allocations: 226.3 kB / 384.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3199, allocations: 71.78 kB / 384.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.32, allocations: 75.89 kB / 385 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.32, allocations: 5.219 kB / 385 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.3201, allocations: 1.219 kB / 385 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3201, allocations: 2.578 kB / 385 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003282/0.3233, allocations: 1.667 MB / 386.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3234, allocations: 5.094 kB / 386.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007548/0.3241, allocations: 148.6 kB / 386.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.3241, allocations: 2.969 kB / 386.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.3242, allocations: 7.562 kB / 386.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3242, allocations: 5.797 kB / 386.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3242, allocations: 5.219 kB / 386.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003207/0.3274, allocations: 1.304 MB / 388.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.3276, allocations: 144.7 kB / 388.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.3277, allocations: 16.06 kB / 388.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007407/0.3284, allocations: 105.7 kB / 388.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3286, allocations: 47.88 kB / 388.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.3286, allocations: 19.67 kB / 388.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005077/0.3291, allocations: 405.5 kB / 388.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3291, allocations: 1.344 kB / 388.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00062/0.3298, allocations: 180.1 kB / 389 MB, free: 11.63 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.0001434/0.3299, allocations: 120.9 kB / 389.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002578/0.3325, allocations: 1.024 MB / 390.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3325, allocations: 5.188 kB / 390.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3335, allocations: 400 kB / 390.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005895/0.3341, allocations: 107.4 kB / 390.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.3363, allocations: 1.289 MB / 392 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.3366, allocations: 0.881 MB / 392.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.3368, allocations: 63.42 kB / 392.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3368, allocations: 0 / 392.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of Templates: time 0.01158/0.3484, allocations: 9.268 MB / 402.2 MB, free: 2.363 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches