Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001317, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.491/1.491, allocations: 227.7 MB / 247.7 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 56.09 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1066, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1715/0.2781, allocations: 14.18 MB / 372.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02638/0.3046, allocations: 20.36 MB / 393 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003127/0.3077, allocations: 65.91 kB / 393 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003938/0.3117, allocations: 1.124 MB / 394.1 MB, free: 68 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.3222, allocations: 2.282 MB / 396.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006162/0.3284, allocations: 1.438 MB / 397.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.3405, allocations: 6.476 MB / 404.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009006/0.3415, allocations: 428.6 kB / 404.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002115/0.3436, allocations: 1.045 MB / 405.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002167/0.3458, allocations: 1.077 MB / 406.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003156/0.3461, allocations: 76.59 kB / 407 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005859/0.352, allocations: 1.49 MB / 408.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006649/0.3527, allocations: 331.9 kB / 408.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002681/0.3553, allocations: 1.328 MB / 410.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008374/0.3637, allocations: 3.654 MB / 413.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3638, allocations: 0 / 413.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3638, allocations: 0 / 413.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.725e-05/0.3638, allocations: 0 / 413.8 MB, free: 3.906 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.005854/0.3697, allocations: 3.569 MB / 417.3 MB, free: 272 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3698, allocations: 8.031 kB / 417.3 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005077/0.3703, allocations: 375.5 kB / 417.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00407/0.3744, allocations: 2.555 MB / 420.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.3744, allocations: 29 kB / 420.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.3746, allocations: 51.98 kB / 420.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.3761, allocations: 0.7616 MB / 421.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3762, allocations: 0 / 421.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.158e-05/0.3762, allocations: 19.94 kB / 421.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.3763, allocations: 19.98 kB / 421.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.3782, allocations: 0.8553 MB / 422 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005442/0.3836, allocations: 2.97 MB / 425 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001992/0.3856, allocations: 0.7919 MB / 425.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.3872, allocations: 0.9526 MB / 426.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03487/0.4221, allocations: 30.69 MB / 457.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001421/0.4236, allocations: 0.5957 MB / 458 MB, free: 3.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.046e-06/0.4236, allocations: 0 / 458 MB, free: 3.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.0136/0.4372, allocations: 5.225 MB / 463.2 MB, free: 13.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.821e-05/0.4373, allocations: 64.34 kB / 463.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003983/0.4413, allocations: 2.7 MB / 466 MB, free: 10.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001686/0.4415, allocations: 41.7 kB / 466 MB, free: 10.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.443, allocations: 1.303 MB / 467.3 MB, free: 9.527 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.4433, allocations: 343.2 kB / 467.7 MB, free: 9.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004419/0.4438, allocations: 234.2 kB / 467.9 MB, free: 8.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4439, allocations: 341.9 kB / 468.2 MB, free: 8.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.4453, allocations: 482 kB / 468.7 MB, free: 8.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.4468, allocations: 0.6431 MB / 469.3 MB, free: 7.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.4497, allocations: 1.137 MB / 470.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.4497, allocations: 8 kB / 470.5 MB, free: 6.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004582/0.4543, allocations: 1.972 MB / 472.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.4544, allocations: 11.94 kB / 472.5 MB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001728/0.4545, allocations: 112.5 kB / 472.6 MB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007223/0.4553, allocations: 268.4 kB / 472.8 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009114/0.4562, allocations: 199.6 kB / 473 MB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/0.469, allocations: 14.25 MB / 487.3 MB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.4705, allocations: 87.95 kB / 487.4 MB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.4706, allocations: 60 kB / 487.4 MB, free: 3.785 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.0008416/0.4715, allocations: 428.8 kB / 487.8 MB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004509/0.4719, allocations: 371.5 kB / 488.2 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005605/0.4775, allocations: 2.212 MB / 490.4 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4776, allocations: 12 kB / 490.4 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.4776, allocations: 7.984 kB / 490.4 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.4776, allocations: 3.984 kB / 490.4 MB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.4797, allocations: 1.543 MB / 492 MB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001737/0.4799, allocations: 112 kB / 492.1 MB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000767/0.4806, allocations: 139.8 kB / 492.2 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006758/0.4813, allocations: 268.3 kB / 492.5 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.4814, allocations: 43.98 kB / 492.5 MB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/0.4928, allocations: 14.24 MB / 0.4949 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4929, allocations: 4.062 kB / 0.4949 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005922/0.4988, allocations: 2.539 MB / 0.4974 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.4999, allocations: 0.4888 MB / 0.4979 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003385/0.5002, allocations: 20.14 kB / 0.4979 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.5013, allocations: 75.89 kB / 0.4979 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003737/0.5017, allocations: 144.8 kB / 0.4981 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.5018, allocations: 51.98 kB / 0.4981 GB, free: 11.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002653/0.5044, allocations: 1.774 MB / 0.4999 GB, free: 9.648 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5045, allocations: 0 / 0.4999 GB, free: 9.648 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001781/0.5062, allocations: 0.6561 MB / 0.5005 GB, free: 8.992 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.001321/0.5076, allocations: 0.8123 MB / 0.5013 GB, free: 8.172 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004957/0.5125, allocations: 2.549 MB / 0.5038 GB, free: 5.465 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5126, allocations: 3.938 kB / 0.5038 GB, free: 5.461 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002938/0.5155, allocations: 1.952 MB / 0.5057 GB, free: 3.355 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003056/0.5186, allocations: 0.6218 MB / 0.5063 GB, free: 2.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007767/0.5264, allocations: 4.795 MB / 0.511 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/0.5277, allocations: 1.654 MB / 0.5126 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004619/0.5282, allocations: 171.4 kB / 0.5128 GB, free: 12.04 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5282, allocations: 0 / 0.5128 GB, free: 12.04 MB / 446.1 MB Notification: Performance of Templates: time 0.2765/0.8047, allocations: 154 MB / 0.6631 GB, free: 22.59 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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