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/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_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/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 201 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 226.5 MB / 245.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007379/0.0007377, allocations: 89.75 kB / 297.5 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 12 kB / 358.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1965, allocations: 51.28 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1149/0.3115, allocations: 105.1 MB / 0.5024 GB, free: 2.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.3117, allocations: 71.95 kB / 0.5025 GB, free: 2.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4124/0.7242, allocations: 137.6 MB / 0.6368 GB, free: 5.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.7242, allocations: 0 / 0.6368 GB, free: 5.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.236e-05/0.7243, allocations: 44 kB / 0.6368 GB, free: 5.355 MB / 410.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.006084/0.7304, allocations: 3.282 MB / 0.64 GB, free: 2.004 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.7305, allocations: 12.03 kB / 0.6401 GB, free: 1.992 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005486/0.731, allocations: 379.8 kB / 0.6404 GB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003805/0.7348, allocations: 2.423 MB / 0.6428 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.7349, allocations: 37 kB / 0.6428 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.735, allocations: 51.91 kB / 0.6429 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.7367, allocations: 0.9001 MB / 0.6438 GB, free: 14.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.7367, allocations: 3.938 kB / 0.6438 GB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.337e-05/0.7368, allocations: 24 kB / 0.6438 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.7368, allocations: 23.92 kB / 0.6438 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.7386, allocations: 0.91 MB / 0.6447 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005094/0.7437, allocations: 3.014 MB / 0.6476 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.7454, allocations: 0.8574 MB / 0.6485 GB, free: 9.184 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.7469, allocations: 0.9919 MB / 0.6494 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2027/0.9495, allocations: 36.2 MB / 0.6848 GB, free: 77.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.9506, allocations: 0.6248 MB / 0.6854 GB, free: 77.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.524e-06/0.9506, allocations: 0 / 0.6854 GB, free: 77.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01069/0.9613, allocations: 5.757 MB / 0.691 GB, free: 75.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.077e-05/0.9614, allocations: 277.6 kB / 0.6913 GB, free: 75.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002737/0.9641, allocations: 2.657 MB / 0.6939 GB, free: 75.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.515e-05/0.9642, allocations: 43.52 kB / 0.6939 GB, free: 75.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007796/0.965, allocations: 1.307 MB / 0.6952 GB, free: 75.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.9652, allocations: 336.7 kB / 0.6955 GB, free: 74.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.488e-05/0.9653, allocations: 19.97 kB / 0.6955 GB, free: 74.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.641e-05/0.9653, allocations: 349 kB / 0.6959 GB, free: 74.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.9664, allocations: 0.5185 MB / 0.6964 GB, free: 74.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.9675, allocations: 0.7648 MB / 0.6971 GB, free: 74.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00218/0.9697, allocations: 1.252 MB / 0.6983 GB, free: 74.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.9697, allocations: 0 / 0.6983 GB, free: 74.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003321/0.973, allocations: 2.087 MB / 0.7004 GB, free: 73.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.9731, allocations: 6 kB / 0.7004 GB, free: 73.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/0.9732, allocations: 122.5 kB / 0.7005 GB, free: 73.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005676/0.9738, allocations: 265.7 kB / 0.7008 GB, free: 73.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000803/0.9746, allocations: 228.4 kB / 0.701 GB, free: 73.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005729/0.9804, allocations: 13.26 MB / 0.7139 GB, free: 61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.9818, allocations: 127.5 kB / 0.714 GB, free: 61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.9819, allocations: 58.06 kB / 0.7141 GB, free: 61 MB / 442.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.0008794/0.9828, allocations: 430.8 kB / 0.7145 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000272/0.983, allocations: 369.6 kB / 0.7149 GB, free: 60.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004371/0.9874, allocations: 2.327 MB / 0.7171 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.9874, allocations: 11.88 kB / 0.7172 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.9875, allocations: 10.47 kB / 0.7172 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.9875, allocations: 7.219 kB / 0.7172 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.9891, allocations: 1.546 MB / 0.7187 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001288/0.9892, allocations: 112.4 kB / 0.7188 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00066/0.9899, allocations: 171.5 kB / 0.7189 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005055/0.9904, allocations: 263.1 kB / 0.7192 GB, free: 60 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.531e-05/0.9905, allocations: 39.86 kB / 0.7192 GB, free: 60 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005453/0.9959, allocations: 13.27 MB / 0.7322 GB, free: 47.47 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.9959, allocations: 0 / 0.7322 GB, free: 47.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004382/1, allocations: 2.717 MB / 0.7348 GB, free: 46.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007454/1.001, allocations: 497.7 kB / 0.7353 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/1.001, allocations: 18.84 kB / 0.7353 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008998/1.002, allocations: 121.8 kB / 0.7355 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000285/1.003, allocations: 136.6 kB / 0.7356 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.702e-05/1.003, allocations: 49.56 kB / 0.7356 GB, free: 46.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001906/1.005, allocations: 1.741 MB / 0.7373 GB, free: 46.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.005, allocations: 0 / 0.7373 GB, free: 46.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001409/1.006, allocations: 0.7174 MB / 0.738 GB, free: 46.42 MB / 442.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.001062/1.007, allocations: 0.9062 MB / 0.7389 GB, free: 46.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003206/1.01, allocations: 2.633 MB / 0.7415 GB, free: 45.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.01, allocations: 0 / 0.7415 GB, free: 45.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/1.012, allocations: 2.012 MB / 0.7435 GB, free: 43.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/1.014, allocations: 0.5794 MB / 0.744 GB, free: 43.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005434/1.02, allocations: 5.311 MB / 0.7492 GB, free: 41.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007944/1.021, allocations: 1.657 MB / 0.7508 GB, free: 40.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001214/1.022, allocations: 343.3 kB / 0.7512 GB, free: 40.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/1.022, allocations: 144.8 kB / 0.7513 GB, free: 40.62 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/1.022, allocations: 0 / 0.7513 GB, free: 40.62 MB / 442.7 MB Notification: Performance of Templates: time 0.05003/1.072, allocations: 36.98 MB / 0.7874 GB, free: 22.9 MB / 442.7 MB 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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches