Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001741/0.001741, allocations: 195.9 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 226.6 MB / 244.7 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007257/0.0007257, allocations: 93.09 kB / 296.8 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002083/0.0002083, allocations: 8 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2002, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007301/0.2075, allocations: 12.56 MB / 420.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.2233, allocations: 18.58 MB / 439.2 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.2251, allocations: 67.44 kB / 439.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003434/0.2285, allocations: 0.8595 MB / 440.1 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00675/0.2353, allocations: 1.836 MB / 441.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004037/0.2394, allocations: 1.116 MB / 443.1 MB, free: 8.578 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009357/0.2488, allocations: 6.093 MB / 449.2 MB, free: 2.469 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008757/0.2497, allocations: 408.9 kB / 449.6 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.2511, allocations: 0.9445 MB / 450.5 MB, free: 1.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.2523, allocations: 0.9824 MB / 451.5 MB, free: 100 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.2524, allocations: 47.94 kB / 451.5 MB, free: 52 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003683/0.2561, allocations: 1.353 MB / 452.9 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003311/0.2565, allocations: 270 kB / 453.1 MB, free: 14.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.2581, allocations: 1.244 MB / 454.4 MB, free: 13.17 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002681/0.2608, allocations: 2.629 MB / 457 MB, free: 10.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.2608, allocations: 0 / 457 MB, free: 10.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.2608, allocations: 0 / 457 MB, free: 10.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.24e-05/0.2608, allocations: 3.938 kB / 457 MB, free: 10.53 MB / 330.7 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.004608/0.2655, allocations: 3.128 MB / 460.1 MB, free: 7.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.2655, allocations: 8.031 kB / 460.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003727/0.2659, allocations: 379.4 kB / 460.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003566/0.2695, allocations: 2.54 MB / 463.1 MB, free: 4.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.2695, allocations: 44.92 kB / 463.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.2696, allocations: 51.91 kB / 463.2 MB, free: 4.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.2711, allocations: 0.7811 MB / 463.9 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.2711, allocations: 7.938 kB / 463.9 MB, free: 3.441 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.089e-05/0.2712, allocations: 20 kB / 464 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.2712, allocations: 23.98 kB / 464 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.273, allocations: 0.91 MB / 464.9 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004701/0.2777, allocations: 3.017 MB / 467.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.2794, allocations: 0.8457 MB / 468.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.2809, allocations: 0.9839 MB / 469.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02902/0.3099, allocations: 30.73 MB / 0.4887 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.3112, allocations: 0.6347 MB / 0.4894 GB, free: 9.938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.526e-06/0.3112, allocations: 0 / 0.4894 GB, free: 9.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=99): time 0.01231/0.3235, allocations: 5.701 MB / 0.4949 GB, free: 3.977 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.3236, allocations: 64.34 kB / 0.495 GB, free: 3.902 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003212/0.3268, allocations: 2.665 MB / 0.4976 GB, free: 1.223 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3269, allocations: 41.7 kB / 0.4976 GB, free: 1.176 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1735/0.5004, allocations: 1.294 MB / 0.4989 GB, free: 96.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004768/0.5009, allocations: 332.9 kB / 0.4992 GB, free: 96.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.501, allocations: 17.81 kB / 0.4992 GB, free: 96.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.5012, allocations: 347.6 kB / 0.4996 GB, free: 96.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001629/0.5028, allocations: 0.5293 MB / 0.5001 GB, free: 96.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.5044, allocations: 0.7066 MB / 0.5008 GB, free: 95.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.5071, allocations: 1.249 MB / 0.502 GB, free: 95.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.5071, allocations: 2.344 kB / 0.502 GB, free: 95.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003801/0.5109, allocations: 2.098 MB / 0.504 GB, free: 95.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.511, allocations: 6.812 kB / 0.5041 GB, free: 95.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.5111, allocations: 120.4 kB / 0.5042 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000609/0.5117, allocations: 262.3 kB / 0.5044 GB, free: 95.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008262/0.5126, allocations: 234.8 kB / 0.5046 GB, free: 94.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006254/0.5188, allocations: 13.25 MB / 0.5176 GB, free: 81.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.5204, allocations: 122.8 kB / 0.5177 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002442/0.5207, allocations: 65.78 kB / 0.5178 GB, free: 81.66 MB / 378.7 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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001061/0.5218, allocations: 415.2 kB / 0.5182 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008959/0.5227, allocations: 368.4 kB / 0.5185 GB, free: 81.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005102/0.5278, allocations: 2.346 MB / 0.5208 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.5278, allocations: 10.22 kB / 0.5208 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.5278, allocations: 3.438 kB / 0.5208 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.5279, allocations: 7.875 kB / 0.5208 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.5297, allocations: 1.546 MB / 0.5223 GB, free: 79.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001195/0.5299, allocations: 118.4 kB / 0.5224 GB, free: 79.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006731/0.5306, allocations: 169.1 kB / 0.5226 GB, free: 79.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005541/0.5311, allocations: 258.9 kB / 0.5229 GB, free: 78.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.582e-05/0.5312, allocations: 43.23 kB / 0.5229 GB, free: 78.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005906/0.5371, allocations: 13.25 MB / 0.5358 GB, free: 64.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5372, allocations: 0 / 0.5358 GB, free: 64.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004654/0.5418, allocations: 2.726 MB / 0.5385 GB, free: 62.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007459/0.5426, allocations: 0.4925 MB / 0.539 GB, free: 61.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003773/0.543, allocations: 20 kB / 0.539 GB, free: 61.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.544, allocations: 115.9 kB / 0.5391 GB, free: 61.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003031/0.5443, allocations: 140.8 kB / 0.5392 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.502e-05/0.5444, allocations: 51.97 kB / 0.5393 GB, free: 61.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001886/0.5463, allocations: 1.731 MB / 0.541 GB, free: 59.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5463, allocations: 0 / 0.541 GB, free: 59.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001554/0.5479, allocations: 0.6625 MB / 0.5416 GB, free: 58.86 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/0.549, allocations: 0.8189 MB / 0.5424 GB, free: 58.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00336/0.5523, allocations: 2.637 MB / 0.545 GB, free: 55.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5524, allocations: 0.5938 kB / 0.545 GB, free: 55.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.5543, allocations: 2.014 MB / 0.547 GB, free: 53.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002461/0.5568, allocations: 0.5833 MB / 0.5475 GB, free: 52.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005915/0.5627, allocations: 5.398 MB / 0.5528 GB, free: 47.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009205/0.5637, allocations: 1.657 MB / 0.5544 GB, free: 45.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003864/0.5641, allocations: 171.4 kB / 0.5546 GB, free: 45.41 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5641, allocations: 0 / 0.5546 GB, free: 45.41 MB / 378.7 MB Notification: Performance of Templates: time 0.2611/0.8252, allocations: 153.6 MB / 0.7046 GB, free: 116.5 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches