Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 112.7 kB / 17.68 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 52.27 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09559, allocations: 49.46 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01242/0.108, allocations: 14.17 MB / 365.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1768/0.2848, allocations: 20.31 MB / 386 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.2865, allocations: 125.5 kB / 386.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00257/0.2891, allocations: 1.113 MB / 387.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006653/0.2958, allocations: 2.288 MB / 389.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004492/0.3003, allocations: 1.44 MB / 390.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008512/0.3089, allocations: 6.421 MB / 397.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.3094, allocations: 429 kB / 397.8 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00127/0.3107, allocations: 1.068 MB / 398.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009701/0.3117, allocations: 1.087 MB / 399.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.3118, allocations: 73 kB / 400 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00375/0.3156, allocations: 1.481 MB / 401.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.3158, allocations: 319.9 kB / 401.8 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000881/0.3167, allocations: 1.316 MB / 403.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00403/0.3208, allocations: 3.689 MB / 406.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3208, allocations: 3.938 kB / 406.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3208, allocations: 0 / 406.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.306e-05/0.3208, allocations: 0 / 406.8 MB, free: 12.95 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.005108/0.3259, allocations: 3.562 MB / 410.4 MB, free: 9.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.326, allocations: 8.031 kB / 410.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004462/0.3265, allocations: 375.5 kB / 410.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003575/0.33, allocations: 2.517 MB / 413.3 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.3301, allocations: 40.92 kB / 413.3 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.3302, allocations: 51.91 kB / 413.4 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3317, allocations: 0.7654 MB / 414.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.3317, allocations: 0 / 414.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.3318, allocations: 20 kB / 414.1 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.3318, allocations: 23.92 kB / 414.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.3334, allocations: 0.8514 MB / 415 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004963/0.3384, allocations: 2.963 MB / 418 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.3401, allocations: 0.791 MB / 418.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001392/0.3415, allocations: 0.957 MB / 419.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0305/0.372, allocations: 30.07 MB / 449.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.3732, allocations: 0.5919 MB / 450.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.635e-06/0.3732, allocations: 0 / 450.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01122/0.3844, allocations: 5.229 MB / 455.6 MB, free: 7.523 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3845, allocations: 68.39 kB / 455.7 MB, free: 7.445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003069/0.3875, allocations: 2.696 MB / 458.4 MB, free: 4.734 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.668e-05/0.3876, allocations: 41.7 kB / 458.4 MB, free: 4.688 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.3887, allocations: 1.307 MB / 459.7 MB, free: 3.375 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/0.3889, allocations: 339.1 kB / 460.1 MB, free: 3.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003459/0.3893, allocations: 238.3 kB / 460.3 MB, free: 2.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3894, allocations: 341.9 kB / 460.6 MB, free: 2.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.3906, allocations: 478 kB / 461.1 MB, free: 1.988 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.3919, allocations: 0.6431 MB / 461.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002384/0.3943, allocations: 1.13 MB / 462.9 MB, free: 96 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3943, allocations: 0 / 462.9 MB, free: 96 kB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003922/0.3982, allocations: 1.971 MB / 464.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.3983, allocations: 11.94 kB / 464.8 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001606/0.3985, allocations: 124 kB / 465 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006629/0.3991, allocations: 268.9 kB / 465.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008308/0.4, allocations: 191.7 kB / 465.4 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009443/0.4094, allocations: 14.24 MB / 479.7 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.4109, allocations: 91.95 kB / 479.7 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.411, allocations: 60 kB / 479.8 MB, free: 13.64 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.0008458/0.4119, allocations: 417.7 kB / 480.2 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004137/0.4123, allocations: 375.5 kB / 480.6 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/0.4169, allocations: 2.217 MB / 482.8 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.4169, allocations: 8 kB / 482.8 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.4169, allocations: 4 kB / 482.8 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4169, allocations: 7.984 kB / 482.8 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.4188, allocations: 1.543 MB / 484.4 MB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001446/0.419, allocations: 116 kB / 484.5 MB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007013/0.4197, allocations: 135.8 kB / 484.6 MB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006215/0.4203, allocations: 264.3 kB / 484.9 MB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.4204, allocations: 39.98 kB / 484.9 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009519/0.4299, allocations: 14.25 MB / 499.1 MB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.43, allocations: 3.938 kB / 499.2 MB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005211/0.4352, allocations: 2.547 MB / 0.4899 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.4363, allocations: 0.4888 MB / 0.4904 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.4366, allocations: 16 kB / 0.4904 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009423/0.4376, allocations: 83.89 kB / 0.4905 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000348/0.4379, allocations: 144.8 kB / 0.4907 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.438, allocations: 47.98 kB / 0.4907 GB, free: 5.277 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002248/0.4403, allocations: 1.774 MB / 0.4924 GB, free: 3.496 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4403, allocations: 0 / 0.4924 GB, free: 3.496 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0014/0.4417, allocations: 0.6483 MB / 0.4931 GB, free: 2.848 MB / 414.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.001104/0.4428, allocations: 0.8038 MB / 0.4938 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003741/0.4466, allocations: 2.514 MB / 0.4963 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4466, allocations: 0 / 0.4963 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002353/0.4489, allocations: 1.964 MB / 0.4982 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.451, allocations: 0.6132 MB / 0.4988 GB, free: 12.63 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005889/0.4569, allocations: 4.657 MB / 0.5034 GB, free: 7.941 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.458, allocations: 1.658 MB / 0.505 GB, free: 6.258 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.459, allocations: 391.4 kB / 0.5054 GB, free: 5.871 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.4593, allocations: 167.4 kB / 0.5055 GB, free: 5.707 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4593, allocations: 4 kB / 0.5055 GB, free: 5.703 MB / 430.1 MB Notification: Performance of Templates: time 0.2919/0.7512, allocations: 36.94 MB / 0.5416 GB, free: 147.2 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches