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.001162/0.001162, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001053/0.001053, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.34/1.34, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009886/0.0009886, allocations: 58.28 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.0933, allocations: 49.43 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01345/0.1068, allocations: 14.18 MB / 365.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.2747, allocations: 20.31 MB / 386 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002336/0.2771, allocations: 122.1 kB / 386.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003365/0.2804, allocations: 1.123 MB / 387.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009384/0.2899, allocations: 2.285 MB / 389.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005145/0.2951, allocations: 1.439 MB / 390.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009243/0.3043, allocations: 6.418 MB / 397.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006104/0.305, allocations: 432.8 kB / 397.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001497/0.3065, allocations: 1.073 MB / 398.9 MB, free: 2.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.3076, allocations: 1.081 MB / 399.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.3077, allocations: 75.31 kB / 400 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00397/0.3117, allocations: 1.477 MB / 401.5 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.312, allocations: 327.4 kB / 401.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.3131, allocations: 1.316 MB / 403.1 MB, free: 188 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00477/0.3179, allocations: 3.682 MB / 406.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3179, allocations: 0 / 406.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3179, allocations: 0 / 406.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.334e-05/0.318, allocations: 0 / 406.8 MB, free: 13.07 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.005407/0.3234, allocations: 3.566 MB / 410.4 MB, free: 9.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3235, allocations: 12.03 kB / 410.4 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004555/0.3239, allocations: 371.5 kB / 410.7 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003504/0.3274, allocations: 2.524 MB / 413.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.3275, allocations: 37 kB / 413.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.3276, allocations: 51.91 kB / 413.4 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.329, allocations: 0.7576 MB / 414.1 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.329, allocations: 0 / 414.1 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.26e-05/0.3291, allocations: 23.98 kB / 414.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.3291, allocations: 16 kB / 414.2 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.3308, allocations: 0.8592 MB / 415 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004624/0.3355, allocations: 2.959 MB / 418 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.3371, allocations: 0.7871 MB / 418.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.3385, allocations: 0.9609 MB / 419.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03056/0.3691, allocations: 30.06 MB / 449.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.3702, allocations: 0.5918 MB / 450.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.705e-06/0.3702, allocations: 4 kB / 450.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01124/0.3815, allocations: 5.227 MB / 455.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.3816, allocations: 68.41 kB / 455.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/0.3847, allocations: 2.696 MB / 458.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.737e-05/0.3848, allocations: 41.7 kB / 458.4 MB, free: 4.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.3859, allocations: 1.307 MB / 459.7 MB, free: 3.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002542/0.3861, allocations: 339.1 kB / 460 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003327/0.3865, allocations: 230.3 kB / 460.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3866, allocations: 353.9 kB / 460.6 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.3878, allocations: 474 kB / 461.1 MB, free: 2.109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.3891, allocations: 0.644 MB / 461.7 MB, free: 1.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/0.3915, allocations: 1.137 MB / 462.9 MB, free: 212 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3916, allocations: 0 / 462.9 MB, free: 212 kB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003746/0.3953, allocations: 1.979 MB / 464.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3953, allocations: 8 kB / 464.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/0.3955, allocations: 116 kB / 465 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006936/0.3962, allocations: 268.9 kB / 465.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008833/0.3971, allocations: 191.7 kB / 465.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009236/0.4064, allocations: 14.25 MB / 479.7 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.4077, allocations: 91.95 kB / 479.7 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.4078, allocations: 56.7 kB / 479.8 MB, free: 13.76 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.0007694/0.4086, allocations: 429 kB / 480.2 MB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003588/0.409, allocations: 367.5 kB / 480.6 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004627/0.4136, allocations: 2.216 MB / 482.8 MB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.4136, allocations: 8 kB / 482.8 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.4136, allocations: 7.984 kB / 482.8 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.4137, allocations: 3.984 kB / 482.8 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.4154, allocations: 1.539 MB / 484.4 MB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001484/0.4155, allocations: 120 kB / 484.5 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007073/0.4162, allocations: 131.8 kB / 484.6 MB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006549/0.4169, allocations: 268.3 kB / 484.9 MB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.511e-05/0.417, allocations: 47.98 kB / 484.9 MB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009214/0.4262, allocations: 14.24 MB / 499.2 MB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4262, allocations: 7.969 kB / 499.2 MB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0052/0.4315, allocations: 2.547 MB / 0.4899 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.4325, allocations: 496.5 kB / 0.4904 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.4328, allocations: 20 kB / 0.4904 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009322/0.4338, allocations: 83.89 kB / 0.4905 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003459/0.4341, allocations: 136.8 kB / 0.4907 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.4342, allocations: 47.98 kB / 0.4907 GB, free: 5.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.4366, allocations: 1.77 MB / 0.4924 GB, free: 3.621 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4366, allocations: 8 kB / 0.4924 GB, free: 3.613 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001476/0.4381, allocations: 0.6483 MB / 0.4931 GB, free: 2.965 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.001136/0.4393, allocations: 0.8076 MB / 0.4939 GB, free: 2.152 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003765/0.443, allocations: 2.514 MB / 0.4963 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4431, allocations: 0 / 0.4963 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00239/0.4455, allocations: 1.952 MB / 0.4982 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.4476, allocations: 0.6181 MB / 0.4988 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006335/0.4539, allocations: 4.667 MB / 0.5034 GB, free: 8.051 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.4551, allocations: 1.65 MB / 0.505 GB, free: 6.375 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001204/0.4563, allocations: 387.4 kB / 0.5054 GB, free: 5.992 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.4566, allocations: 167.4 kB / 0.5055 GB, free: 5.828 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4566, allocations: 4 kB / 0.5055 GB, free: 5.824 MB / 430.1 MB Notification: Performance of Templates: time 0.2135/0.6701, allocations: 36.94 MB / 0.5416 GB, free: 147.8 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 gbode -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