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.0008657/0.0008658, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008944/0.0008945, allocations: 203.6 kB / 18.28 MB, free: 5.477 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.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002305, allocations: 4 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09284, allocations: 51.53 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1812/0.2741, allocations: 13.51 MB / 372.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02379/0.298, allocations: 20.27 MB / 393 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.3015, allocations: 64 kB / 393.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004646/0.3061, allocations: 1.005 MB / 394.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0121/0.3183, allocations: 1.907 MB / 396 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007465/0.3258, allocations: 1.207 MB / 397.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01755/0.3434, allocations: 6.392 MB / 403.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.3448, allocations: 408.1 kB / 404 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.3476, allocations: 1.021 MB / 405 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002605/0.3503, allocations: 1.041 MB / 406.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004193/0.3507, allocations: 43.97 kB / 406.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008859/0.3596, allocations: 1.459 MB / 407.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000757/0.3604, allocations: 291.6 kB / 407.9 MB, free: 11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003228/0.3637, allocations: 1.314 MB / 409.2 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008883/0.3726, allocations: 3.529 MB / 412.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3726, allocations: 0 / 412.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3726, allocations: 0 / 412.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001003/0.3728, allocations: 0 / 412.7 MB, free: 6.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.0088/0.3816, allocations: 3.132 MB / 415.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3816, allocations: 8.031 kB / 415.8 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008084/0.3825, allocations: 375.4 kB / 416.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007278/0.3898, allocations: 2.559 MB / 418.8 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.569e-05/0.3898, allocations: 33 kB / 418.8 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/0.3901, allocations: 51.91 kB / 418.9 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.3931, allocations: 0.7851 MB / 419.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.3931, allocations: 0 / 419.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.3933, allocations: 19.94 kB / 419.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.932e-05/0.3933, allocations: 27.98 kB / 419.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003346/0.3967, allocations: 0.9139 MB / 420.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008439/0.4051, allocations: 2.999 MB / 423.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003399/0.4086, allocations: 0.8624 MB / 424.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002772/0.4114, allocations: 0.9956 MB / 425.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04668/0.4581, allocations: 30.73 MB / 456.2 MB, free: 6.348 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.4595, allocations: 0.6386 MB / 456.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.537e-06/0.4595, allocations: 0 / 456.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01321/0.4727, allocations: 5.697 MB / 462.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.4728, allocations: 64.34 kB / 462.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003759/0.4766, allocations: 2.696 MB / 465.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.645e-05/0.4767, allocations: 41.7 kB / 465.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.4778, allocations: 1.303 MB / 466.6 MB, free: 11.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.4781, allocations: 331.2 kB / 467 MB, free: 11.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.4783, allocations: 81.67 kB / 467 MB, free: 11.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4784, allocations: 349.9 kB / 467.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.4798, allocations: 0.5331 MB / 467.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.4813, allocations: 0.7095 MB / 468.6 MB, free: 9.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002839/0.4841, allocations: 1.266 MB / 469.9 MB, free: 8.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4841, allocations: 0 / 469.9 MB, free: 8.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004276/0.4884, allocations: 2.1 MB / 472 MB, free: 6.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4885, allocations: 11.94 kB / 472 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/0.4886, allocations: 120.5 kB / 472.1 MB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006766/0.4893, allocations: 272.4 kB / 472.4 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009335/0.4902, allocations: 227.7 kB / 472.6 MB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008611/0.4989, allocations: 13.26 MB / 485.9 MB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.5002, allocations: 120 kB / 486 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.5004, allocations: 63.94 kB / 486 MB, free: 6.613 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.0008301/0.5012, allocations: 429.7 kB / 486.5 MB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006915/0.5019, allocations: 371.5 kB / 486.8 MB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005748/0.5077, allocations: 2.332 MB / 489.2 MB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.5077, allocations: 8 kB / 489.2 MB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.5077, allocations: 8 kB / 489.2 MB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.5077, allocations: 7.984 kB / 489.2 MB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.5097, allocations: 1.543 MB / 490.7 MB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001443/0.5099, allocations: 112 kB / 490.8 MB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007927/0.5107, allocations: 167.8 kB / 491 MB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006486/0.5113, allocations: 272.3 kB / 491.3 MB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.231e-05/0.5115, allocations: 51.86 kB / 491.3 MB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008525/0.52, allocations: 13.24 MB / 0.4927 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.52, allocations: 7.922 kB / 0.4927 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005751/0.5258, allocations: 2.739 MB / 0.4954 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008506/0.5266, allocations: 492.4 kB / 0.4959 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.527, allocations: 23.98 kB / 0.4959 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.5282, allocations: 115.9 kB / 0.496 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.5285, allocations: 136.8 kB / 0.4961 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5287, allocations: 51.98 kB / 0.4962 GB, free: 14.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00256/0.5312, allocations: 1.766 MB / 0.4979 GB, free: 13.16 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5312, allocations: 4 kB / 0.4979 GB, free: 13.15 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001567/0.5328, allocations: 0.6522 MB / 0.4986 GB, free: 12.5 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.001244/0.5341, allocations: 0.8077 MB / 0.4993 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004239/0.5383, allocations: 2.647 MB / 0.5019 GB, free: 8.883 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5383, allocations: 4.188 kB / 0.5019 GB, free: 8.879 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.5409, allocations: 2.015 MB / 0.5039 GB, free: 6.707 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/0.5436, allocations: 0.5895 MB / 0.5045 GB, free: 6.113 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007131/0.5507, allocations: 5.662 MB / 0.51 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.5519, allocations: 1.658 MB / 0.5116 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001456/0.5533, allocations: 395.3 kB / 0.512 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.5536, allocations: 163.4 kB / 0.5122 GB, free: 14.19 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5536, allocations: 0 / 0.5122 GB, free: 14.19 MB / 446.1 MB Notification: Performance of Templates: time 0.2155/0.7691, allocations: 35.42 MB / 0.5467 GB, free: 138.4 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches