Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001803/0.001803, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002258/0.002258, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.437/2.437, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 55.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.461/0.4632, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0264/0.4897, allocations: 14.19 MB / 424.1 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0474/0.5371, allocations: 20.34 MB / 444.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004219/0.5414, allocations: 122.9 kB / 444.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00582/0.5473, allocations: 1.117 MB / 445.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01544/0.5629, allocations: 2.29 MB / 448 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00996/0.5729, allocations: 1.447 MB / 449.4 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01973/0.5927, allocations: 6.492 MB / 455.9 MB, free: 3.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.5943, allocations: 432.4 kB / 456.3 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003474/0.5979, allocations: 1.093 MB / 457.4 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003292/0.6012, allocations: 1.087 MB / 458.5 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005595/0.6018, allocations: 76 kB / 458.6 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008578/0.6104, allocations: 1.479 MB / 460.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009649/0.6115, allocations: 317.8 kB / 460.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003653/0.6151, allocations: 1.324 MB / 461.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01354/0.6288, allocations: 3.689 MB / 465.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.189e-05/0.6289, allocations: 0 / 465.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.6289, allocations: 0 / 465.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001608/0.6291, allocations: 4 kB / 465.4 MB, free: 9.871 MB / 382.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.01272/0.6418, allocations: 3.557 MB / 469 MB, free: 6.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.387e-05/0.6419, allocations: 8.031 kB / 469 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001532/0.6435, allocations: 387.3 kB / 469.3 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00914/0.6526, allocations: 2.52 MB / 471.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.076e-05/0.6528, allocations: 29 kB / 471.9 MB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000343/0.6531, allocations: 51.91 kB / 471.9 MB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002841/0.656, allocations: 0.7655 MB / 472.7 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.6561, allocations: 0 / 472.7 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.6562, allocations: 16 kB / 472.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.912e-05/0.6563, allocations: 19.98 kB / 472.7 MB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002921/0.6592, allocations: 0.8592 MB / 473.6 MB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.6694, allocations: 2.97 MB / 476.6 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003535/0.673, allocations: 0.7988 MB / 477.4 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003001/0.6761, allocations: 0.9448 MB / 478.3 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0686/0.7447, allocations: 30.69 MB / 0.4971 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002314/0.7471, allocations: 0.6034 MB / 0.4977 GB, free: 9.156 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 6.473e-06/0.7471, allocations: 0 / 0.4977 GB, free: 9.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.02522/0.7724, allocations: 5.225 MB / 0.5028 GB, free: 3.676 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.7725, allocations: 68.41 kB / 0.5028 GB, free: 3.598 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006133/0.7787, allocations: 2.688 MB / 0.5055 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003344/0.7791, allocations: 45.7 kB / 0.5055 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001899/0.781, allocations: 1.303 MB / 0.5068 GB, free: 15.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006925/0.7817, allocations: 343.1 kB / 0.5071 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006564/0.7824, allocations: 230.3 kB / 0.5073 GB, free: 14.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.7826, allocations: 349.9 kB / 0.5076 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002493/0.7851, allocations: 474 kB / 0.5081 GB, free: 14.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002768/0.7879, allocations: 0.6505 MB / 0.5087 GB, free: 13.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005291/0.7933, allocations: 1.133 MB / 0.5098 GB, free: 12.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-06/0.7933, allocations: 4 kB / 0.5098 GB, free: 12.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.008402/0.8018, allocations: 1.972 MB / 0.5118 GB, free: 10.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.8019, allocations: 12.47 kB / 0.5118 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002841/0.8022, allocations: 116 kB / 0.5119 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.8036, allocations: 264.4 kB / 0.5121 GB, free: 9.773 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/0.8054, allocations: 199.6 kB / 0.5123 GB, free: 9.578 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0159/0.8213, allocations: 14.25 MB / 0.5262 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/0.8243, allocations: 87.89 kB / 0.5263 GB, free: 9.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004318/0.8248, allocations: 56 kB / 0.5264 GB, free: 9.793 MB / 462.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.001842/0.8267, allocations: 441.5 kB / 0.5268 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/0.8279, allocations: 363.6 kB / 0.5272 GB, free: 8.992 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0095/0.8374, allocations: 2.21 MB / 0.5293 GB, free: 6.699 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/0.8375, allocations: 12 kB / 0.5293 GB, free: 6.688 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/0.8375, allocations: 7.984 kB / 0.5293 GB, free: 6.68 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.8376, allocations: 3.984 kB / 0.5293 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003653/0.8412, allocations: 1.539 MB / 0.5308 GB, free: 5.086 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002746/0.8416, allocations: 116 kB / 0.5309 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.843, allocations: 135.8 kB / 0.5311 GB, free: 4.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.8443, allocations: 264.3 kB / 0.5313 GB, free: 4.551 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/0.8446, allocations: 43.98 kB / 0.5314 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3791/1.224, allocations: 14.24 MB / 0.5453 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.224, allocations: 0.5312 kB / 0.5453 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009872/1.234, allocations: 2.544 MB / 0.5478 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/1.235, allocations: 0.4918 MB / 0.5482 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005784/1.236, allocations: 17.12 kB / 0.5483 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001973/1.238, allocations: 88.59 kB / 0.5483 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006205/1.239, allocations: 141.2 kB / 0.5485 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001761/1.239, allocations: 51 kB / 0.5485 GB, free: 118.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004173/1.243, allocations: 1.766 MB / 0.5503 GB, free: 118.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.92e-07/1.243, allocations: 0 / 0.5503 GB, free: 118.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002919/1.246, allocations: 0.6532 MB / 0.5509 GB, free: 118.2 MB / 462.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.00227/1.248, allocations: 0.8085 MB / 0.5517 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006878/1.255, allocations: 2.518 MB / 0.5541 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/1.255, allocations: 0 / 0.5541 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/1.26, allocations: 1.959 MB / 0.556 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004668/1.264, allocations: 0.6239 MB / 0.5567 GB, free: 114.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/1.278, allocations: 4.711 MB / 0.5613 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/1.279, allocations: 1.663 MB / 0.5629 GB, free: 110 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007265/1.28, allocations: 171.4 kB / 0.563 GB, free: 109.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.834e-06/1.28, allocations: 0 / 0.563 GB, free: 109.8 MB / 462.1 MB Notification: Performance of Templates: time 0.2324/1.512, allocations: 154.8 MB / 0.7142 GB, free: 2.902 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches