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.00114/0.00114, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 64.45 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0866/0.08787, allocations: 50.52 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.168/0.2559, allocations: 14.18 MB / 373.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01996/0.2759, allocations: 20.35 MB / 393.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002207/0.2781, allocations: 121.5 kB / 393.6 MB, free: 492 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002939/0.2811, allocations: 1.127 MB / 394.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008341/0.2894, allocations: 2.278 MB / 397 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005153/0.2946, allocations: 1.449 MB / 398.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.3053, allocations: 6.494 MB / 404.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008906/0.3062, allocations: 424.3 kB / 405.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.3082, allocations: 1.069 MB / 406.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.3095, allocations: 1.086 MB / 407.5 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.3096, allocations: 81.14 kB / 407.6 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005184/0.3148, allocations: 1.482 MB / 409 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003617/0.3152, allocations: 330.7 kB / 409.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.3166, allocations: 1.312 MB / 410.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004424/0.321, allocations: 3.685 MB / 414.4 MB, free: 3.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.321, allocations: 0 / 414.4 MB, free: 3.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3211, allocations: 4 kB / 414.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.011e-05/0.3211, allocations: 4 kB / 414.4 MB, free: 3.328 MB / 318.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.005533/0.3266, allocations: 3.557 MB / 417.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3267, allocations: 8.031 kB / 417.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003838/0.3271, allocations: 379.4 kB / 418.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.3305, allocations: 2.524 MB / 420.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.3306, allocations: 33 kB / 420.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.3307, allocations: 51.91 kB / 420.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.3321, allocations: 0.7616 MB / 421.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3321, allocations: 0 / 421.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/0.3322, allocations: 20 kB / 421.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.3322, allocations: 19.98 kB / 421.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.3338, allocations: 0.8631 MB / 422.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.3383, allocations: 2.959 MB / 425.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.3399, allocations: 0.7921 MB / 426.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.3413, allocations: 0.9488 MB / 427.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0281/0.3694, allocations: 30.69 MB / 458 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.3706, allocations: 0.5957 MB / 458.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.314e-06/0.3706, allocations: 0 / 458.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01082/0.3814, allocations: 5.234 MB / 463.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3815, allocations: 64.41 kB / 463.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002877/0.3843, allocations: 2.692 MB / 466.5 MB, free: 10.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.347e-05/0.3844, allocations: 41.7 kB / 466.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.3855, allocations: 1.303 MB / 467.9 MB, free: 8.992 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002568/0.3857, allocations: 339.1 kB / 468.2 MB, free: 8.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003317/0.3861, allocations: 230.3 kB / 468.4 MB, free: 8.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3862, allocations: 349.9 kB / 468.8 MB, free: 8.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.3873, allocations: 478 kB / 469.3 MB, free: 7.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.3885, allocations: 0.6431 MB / 469.9 MB, free: 6.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.3908, allocations: 1.138 MB / 471 MB, free: 5.707 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3908, allocations: 4 kB / 471 MB, free: 5.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003467/0.3943, allocations: 1.979 MB / 473 MB, free: 3.641 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3943, allocations: 8.469 kB / 473 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/0.3945, allocations: 120 kB / 473.1 MB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006421/0.3951, allocations: 264.4 kB / 473.4 MB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.3959, allocations: 195.7 kB / 473.6 MB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009027/0.405, allocations: 14.24 MB / 487.8 MB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.4063, allocations: 87.89 kB / 487.9 MB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.4064, allocations: 60 kB / 488 MB, free: 3.262 MB / 398.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.0007371/0.4072, allocations: 437.1 kB / 488.4 MB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003488/0.4075, allocations: 368.3 kB / 488.8 MB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004445/0.412, allocations: 2.21 MB / 491 MB, free: 176 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.412, allocations: 19.98 kB / 491 MB, free: 156 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.412, allocations: 4 kB / 491 MB, free: 152 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.412, allocations: 3.984 kB / 491 MB, free: 148 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.4137, allocations: 1.535 MB / 492.5 MB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001366/0.4138, allocations: 116.4 kB / 492.7 MB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006766/0.4145, allocations: 135.8 kB / 492.8 MB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005999/0.4151, allocations: 272.3 kB / 493.1 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.811e-05/0.4152, allocations: 44.61 kB / 493.1 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008547/0.4238, allocations: 14.24 MB / 0.4954 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4238, allocations: 0 / 0.4954 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005133/0.4289, allocations: 2.543 MB / 0.4979 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.4301, allocations: 0.4927 MB / 0.4984 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003332/0.4304, allocations: 16 kB / 0.4984 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009114/0.4314, allocations: 79.89 kB / 0.4985 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004122/0.4318, allocations: 141 kB / 0.4986 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.4319, allocations: 51.98 kB / 0.4987 GB, free: 10.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002561/0.4345, allocations: 1.77 MB / 0.5004 GB, free: 9.121 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4345, allocations: 0 / 0.5004 GB, free: 9.121 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001575/0.4361, allocations: 0.6561 MB / 0.5011 GB, free: 8.465 MB / 430.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.001316/0.4374, allocations: 0.8098 MB / 0.5018 GB, free: 7.648 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004046/0.4414, allocations: 2.518 MB / 0.5043 GB, free: 4.973 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4415, allocations: 0 / 0.5043 GB, free: 4.973 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.444, allocations: 1.952 MB / 0.5062 GB, free: 2.867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.4464, allocations: 0.6324 MB / 0.5068 GB, free: 2.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006793/0.4533, allocations: 4.664 MB / 0.5114 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001115/0.4544, allocations: 1.662 MB / 0.513 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.4555, allocations: 391.3 kB / 0.5134 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.4558, allocations: 163.4 kB / 0.5135 GB, free: 11.29 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4558, allocations: 0 / 0.5135 GB, free: 11.29 MB / 446.1 MB Notification: Performance of Templates: time 0.2028/0.6586, allocations: 37.06 MB / 0.5497 GB, free: 138.1 MB / 446.1 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 -s gbode -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