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.0008809/0.000881, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009766/0.0009767, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002503/0.0002508, allocations: 8 kB / 308.4 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09382/0.09409, allocations: 51.53 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1769/0.271, allocations: 13.52 MB / 373.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02369/0.2947, allocations: 20.28 MB / 393.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002515/0.2973, allocations: 71.91 kB / 393.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003683/0.301, allocations: 0.9906 MB / 394.8 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008865/0.3099, allocations: 1.906 MB / 396.7 MB, free: 252 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005757/0.3157, allocations: 1.206 MB / 397.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01119/0.3269, allocations: 6.398 MB / 404.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007931/0.3277, allocations: 407 kB / 404.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/0.3296, allocations: 1.013 MB / 405.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.3312, allocations: 1.049 MB / 406.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.3314, allocations: 51.88 kB / 406.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004411/0.3358, allocations: 1.452 MB / 408.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004428/0.3363, allocations: 291.3 kB / 408.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.338, allocations: 1.311 MB / 409.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002944/0.341, allocations: 2.64 MB / 412.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.341, allocations: 0 / 412.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.928e-06/0.341, allocations: 0 / 412.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.079e-05/0.3411, allocations: 3.938 kB / 412.5 MB, free: 7.051 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.004615/0.3457, allocations: 3.128 MB / 415.6 MB, free: 3.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3458, allocations: 12.03 kB / 415.6 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004008/0.3462, allocations: 379.4 kB / 416 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003651/0.3498, allocations: 2.552 MB / 418.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.3499, allocations: 36.94 kB / 418.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.3501, allocations: 51.91 kB / 418.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.3516, allocations: 0.7851 MB / 419.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.3516, allocations: 4 kB / 419.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.894e-05/0.3517, allocations: 23.94 kB / 419.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.3517, allocations: 16 kB / 419.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.3535, allocations: 0.9217 MB / 420.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004858/0.3584, allocations: 2.998 MB / 423.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.3602, allocations: 0.8546 MB / 424.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.3618, allocations: 0.9916 MB / 425.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/0.3913, allocations: 30.74 MB / 456 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.3926, allocations: 0.6308 MB / 456.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 8.656e-06/0.3926, allocations: 3.984 kB / 456.6 MB, free: 6.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01303/0.4056, allocations: 5.697 MB / 462.3 MB, free: 484 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.4057, allocations: 64.41 kB / 462.4 MB, free: 408 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003698/0.4094, allocations: 2.7 MB / 465.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/0.4096, allocations: 45.64 kB / 465.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.4107, allocations: 1.299 MB / 466.4 MB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003634/0.4111, allocations: 339.1 kB / 466.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.4112, allocations: 85.66 kB / 466.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4114, allocations: 345.9 kB / 467.1 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.4128, allocations: 0.5254 MB / 467.7 MB, free: 11.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.4142, allocations: 0.7134 MB / 468.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/0.417, allocations: 1.262 MB / 469.6 MB, free: 8.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.4171, allocations: 4 kB / 469.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004231/0.4213, allocations: 2.097 MB / 471.8 MB, free: 6.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.4213, allocations: 11.94 kB / 471.8 MB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/0.4215, allocations: 124 kB / 471.9 MB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006765/0.4222, allocations: 264.4 kB / 472.1 MB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009193/0.4231, allocations: 227.7 kB / 472.4 MB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0085/0.4316, allocations: 13.26 MB / 485.6 MB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.4332, allocations: 124 kB / 485.7 MB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.4334, allocations: 56 kB / 485.8 MB, free: 7.344 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.0008785/0.4342, allocations: 425.6 kB / 486.2 MB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005523/0.4348, allocations: 367.5 kB / 486.6 MB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005532/0.4403, allocations: 2.343 MB / 488.9 MB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.4404, allocations: 12 kB / 488.9 MB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.4404, allocations: 4 kB / 488.9 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4404, allocations: 11.91 kB / 488.9 MB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.4425, allocations: 1.535 MB / 490.5 MB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001487/0.4427, allocations: 120 kB / 490.6 MB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007772/0.4435, allocations: 167.8 kB / 490.8 MB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006531/0.4441, allocations: 264.3 kB / 491 MB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.4442, allocations: 43.92 kB / 491.1 MB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008553/0.4528, allocations: 13.26 MB / 0.4925 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.4529, allocations: 7.875 kB / 0.4925 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005744/0.4586, allocations: 2.727 MB / 0.4952 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009757/0.4596, allocations: 492.5 kB / 0.4956 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004446/0.4601, allocations: 23.94 kB / 0.4957 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.4613, allocations: 115.9 kB / 0.4958 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003579/0.4617, allocations: 140.7 kB / 0.4959 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.4618, allocations: 47.98 kB / 0.496 GB, free: 15.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002612/0.4644, allocations: 1.778 MB / 0.4977 GB, free: 13.88 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4644, allocations: 0 / 0.4977 GB, free: 13.88 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001764/0.4662, allocations: 0.6444 MB / 0.4983 GB, free: 13.23 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.001309/0.4675, allocations: 0.8216 MB / 0.4991 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004432/0.472, allocations: 2.639 MB / 0.5017 GB, free: 9.609 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.472, allocations: 3.859 kB / 0.5017 GB, free: 9.605 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002727/0.4747, allocations: 2.019 MB / 0.5037 GB, free: 7.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/0.4777, allocations: 0.5869 MB / 0.5042 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007749/0.4855, allocations: 5.719 MB / 0.5098 GB, free: 1.086 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.4868, allocations: 1.662 MB / 0.5115 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/0.4872, allocations: 171.4 kB / 0.5116 GB, free: 15.23 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4873, allocations: 0 / 0.5116 GB, free: 15.23 MB / 446.1 MB Notification: Performance of Templates: time 0.279/0.7662, allocations: 153.6 MB / 0.6616 GB, free: 23.23 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 -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) "" Variables in the reference:time,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal,mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal Variables in the result:mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal,mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,time