Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.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.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 110.6 kB / 17.73 MB, free: 5.316 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.001548/0.001548, allocations: 194.9 kB / 18.67 MB, free: 4.383 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.386/1.386, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001097/0.001097, allocations: 47.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07785/0.07896, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.171/0.25, allocations: 13.52 MB / 388.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02025/0.2703, allocations: 19.37 MB / 408 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.2726, allocations: 130.8 kB / 408.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002896/0.2755, allocations: 1.103 MB / 409.3 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00779/0.2833, allocations: 2.269 MB / 411.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004429/0.2878, allocations: 1.401 MB / 412.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.2978, allocations: 6.27 MB / 419.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007668/0.2986, allocations: 434.8 kB / 419.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.3004, allocations: 1.004 MB / 420.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.3015, allocations: 1.06 MB / 421.7 MB, free: 104 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.3017, allocations: 74.25 kB / 421.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004242/0.306, allocations: 1.16 MB / 422.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002811/0.3063, allocations: 325.7 kB / 423.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001143/0.3074, allocations: 1.331 MB / 424.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004246/0.3117, allocations: 3.709 MB / 428.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3117, allocations: 0 / 428.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3117, allocations: 4 kB / 428.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.3117, allocations: 0 / 428.3 MB, free: 10.31 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.004613/0.3163, allocations: 3.592 MB / 431.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3164, allocations: 8.031 kB / 431.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003718/0.3168, allocations: 384.2 kB / 432.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.3199, allocations: 2.533 MB / 434.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.32, allocations: 36.94 kB / 434.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.3201, allocations: 55.89 kB / 434.9 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.3216, allocations: 0.7577 MB / 435.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3216, allocations: 0 / 435.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.752e-05/0.3217, allocations: 20 kB / 435.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.3217, allocations: 19.98 kB / 435.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.3234, allocations: 0.8553 MB / 436.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004505/0.3279, allocations: 2.983 MB / 439.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.3297, allocations: 0.7988 MB / 440.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.3311, allocations: 0.9486 MB / 441.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02935/0.3605, allocations: 30.12 MB / 471.4 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001188/0.3617, allocations: 0.5919 MB / 472 MB, free: 10.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 2.575e-06/0.3617, allocations: 3.938 kB / 472 MB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01163/0.3734, allocations: 5.24 MB / 477.2 MB, free: 4.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.3734, allocations: 64.41 kB / 477.3 MB, free: 4.684 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003235/0.3767, allocations: 2.713 MB / 480 MB, free: 1.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.417e-05/0.3768, allocations: 41.7 kB / 480 MB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.3778, allocations: 1.299 MB / 481.3 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.3781, allocations: 339.1 kB / 481.7 MB, free: 276 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.3784, allocations: 230.3 kB / 481.9 MB, free: 40 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.3786, allocations: 342 kB / 482.2 MB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.3799, allocations: 482 kB / 482.7 MB, free: 15.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.3812, allocations: 0.6528 MB / 483.3 MB, free: 14.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.3836, allocations: 1.13 MB / 484.5 MB, free: 13.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.3836, allocations: 7.875 kB / 484.5 MB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003869/0.3875, allocations: 1.979 MB / 486.5 MB, free: 11.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3875, allocations: 8.469 kB / 486.5 MB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/0.3877, allocations: 120 kB / 486.6 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000662/0.3884, allocations: 272.4 kB / 486.8 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008498/0.3892, allocations: 191.7 kB / 487 MB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009442/0.3987, allocations: 14.25 MB / 0.4895 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.4, allocations: 83.91 kB / 0.4896 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.4002, allocations: 56 kB / 0.4897 GB, free: 10.86 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008343/0.401, allocations: 433.6 kB / 0.4901 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004302/0.4015, allocations: 371.5 kB / 0.4904 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004698/0.4062, allocations: 2.218 MB / 0.4926 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.4062, allocations: 8 kB / 0.4926 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4062, allocations: 8 kB / 0.4926 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4062, allocations: 3.984 kB / 0.4926 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.4082, allocations: 1.547 MB / 0.4941 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000157/0.4084, allocations: 120.9 kB / 0.4942 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006982/0.4091, allocations: 139.8 kB / 0.4944 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000643/0.4097, allocations: 264.3 kB / 0.4946 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.4098, allocations: 51.92 kB / 0.4947 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009704/0.4196, allocations: 14.25 MB / 0.5086 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4196, allocations: 0 / 0.5086 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005987/0.4256, allocations: 2.543 MB / 0.5111 GB, free: 3.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.4268, allocations: 0.4888 MB / 0.5116 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007045/0.4275, allocations: 16 kB / 0.5116 GB, free: 2.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.4287, allocations: 83.89 kB / 0.5117 GB, free: 2.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/0.4292, allocations: 140.8 kB / 0.5118 GB, free: 2.523 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/0.4293, allocations: 51.98 kB / 0.5118 GB, free: 2.473 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003113/0.4324, allocations: 1.778 MB / 0.5136 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of sort global known variables: time 4e-07/0.4324, allocations: 0 / 0.5136 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00173/0.4342, allocations: 0.6561 MB / 0.5142 GB, free: 32 kB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001352/0.4355, allocations: 0.8254 MB / 0.515 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004156/0.4397, allocations: 2.526 MB / 0.5175 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4397, allocations: 0 / 0.5175 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.4423, allocations: 1.96 MB / 0.5194 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.4445, allocations: 0.5175 MB / 0.5199 GB, free: 9.883 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007485/0.452, allocations: 4.676 MB / 0.5245 GB, free: 5.176 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/0.4534, allocations: 1.662 MB / 0.5261 GB, free: 3.488 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00121/0.4546, allocations: 391.4 kB / 0.5265 GB, free: 3.102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.455, allocations: 167.4 kB / 0.5266 GB, free: 2.938 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.455, allocations: 0 / 0.5266 GB, free: 2.938 MB / 462.1 MB Notification: Performance of Templates: time 0.2317/0.6867, allocations: 37.29 MB / 0.563 GB, free: 150.1 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches