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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001469/0.001469, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001757/0.001757, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 62.27 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07709/0.07829, allocations: 50.51 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1443/0.2226, allocations: 14.19 MB / 371.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01721/0.2399, allocations: 20.35 MB / 392.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.2411, allocations: 66 kB / 392.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.2435, allocations: 1.123 MB / 393.3 MB, free: 180 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006292/0.2499, allocations: 2.283 MB / 395.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004002/0.2539, allocations: 1.443 MB / 397 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008665/0.2626, allocations: 6.477 MB / 403.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006168/0.2632, allocations: 432.1 kB / 403.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001281/0.2645, allocations: 1.048 MB / 405 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.2655, allocations: 1.079 MB / 406 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001782/0.2657, allocations: 76.06 kB / 406.1 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003815/0.2695, allocations: 1.483 MB / 407.6 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003025/0.2698, allocations: 323.2 kB / 407.9 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001209/0.271, allocations: 1.334 MB / 409.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003788/0.2748, allocations: 3.654 MB / 412.9 MB, free: 3.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2749, allocations: 4 kB / 412.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2749, allocations: 0 / 412.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.949e-05/0.2749, allocations: 0 / 412.9 MB, free: 3.988 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.004648/0.2796, allocations: 3.565 MB / 416.5 MB, free: 360 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2796, allocations: 8.031 kB / 416.5 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.2797, allocations: 98.5 kB / 416.6 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003868/0.2801, allocations: 375.6 kB / 416.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003219/0.2833, allocations: 2.548 MB / 419.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.2834, allocations: 36.98 kB / 419.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.2835, allocations: 48 kB / 419.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.285, allocations: 0.7577 MB / 420.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.285, allocations: 0 / 420.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-05/0.2851, allocations: 20 kB / 420.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.2851, allocations: 19.98 kB / 420.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.2869, allocations: 0.8553 MB / 421.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004372/0.2913, allocations: 2.974 MB / 424.2 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.2931, allocations: 0.7842 MB / 425 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001517/0.2946, allocations: 0.9603 MB / 426 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02802/0.3226, allocations: 30.69 MB / 456.6 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.3238, allocations: 0.588 MB / 457.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 4.358e-06/0.3238, allocations: 7.938 kB / 457.2 MB, free: 3.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01198/0.3358, allocations: 5.225 MB / 462.5 MB, free: 13.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.3359, allocations: 68.39 kB / 462.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002924/0.3388, allocations: 2.7 MB / 465.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.429e-05/0.3389, allocations: 41.7 kB / 465.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.34, allocations: 1.299 MB / 466.6 MB, free: 9.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.3402, allocations: 339.2 kB / 466.9 MB, free: 9.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/0.3406, allocations: 234.2 kB / 467.1 MB, free: 8.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3407, allocations: 345.9 kB / 467.5 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.342, allocations: 478 kB / 467.9 MB, free: 8.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.3434, allocations: 0.647 MB / 468.6 MB, free: 7.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/0.346, allocations: 1.133 MB / 469.7 MB, free: 6.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3461, allocations: 0 / 469.7 MB, free: 6.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003825/0.3499, allocations: 1.976 MB / 471.7 MB, free: 4.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3499, allocations: 10.81 kB / 471.7 MB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001635/0.3501, allocations: 120 kB / 471.8 MB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006613/0.3508, allocations: 272.9 kB / 472.1 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008901/0.3517, allocations: 195.7 kB / 472.3 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008878/0.3606, allocations: 14.24 MB / 486.5 MB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.3618, allocations: 87.89 kB / 486.6 MB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.3619, allocations: 59.98 kB / 486.7 MB, free: 3.777 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.0007168/0.3627, allocations: 437.1 kB / 487.1 MB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003605/0.363, allocations: 375.5 kB / 487.5 MB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005165/0.3682, allocations: 2.209 MB / 489.7 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.3682, allocations: 8 kB / 489.7 MB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3682, allocations: 8 kB / 489.7 MB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.3683, allocations: 7.984 kB / 489.7 MB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.3699, allocations: 1.55 MB / 491.2 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001491/0.3701, allocations: 112 kB / 491.3 MB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007265/0.3708, allocations: 135.8 kB / 491.5 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006139/0.3714, allocations: 272.3 kB / 491.7 MB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/0.3715, allocations: 39.98 kB / 491.8 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008772/0.3803, allocations: 14.24 MB / 0.4942 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3803, allocations: 0 / 0.4942 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005592/0.3859, allocations: 2.539 MB / 0.4966 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008112/0.3868, allocations: 0.4888 MB / 0.4971 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003121/0.3871, allocations: 20 kB / 0.4971 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009814/0.3881, allocations: 79.89 kB / 0.4972 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003492/0.3884, allocations: 144.8 kB / 0.4974 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.725e-05/0.3885, allocations: 51.98 kB / 0.4974 GB, free: 11.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002237/0.3908, allocations: 1.774 MB / 0.4991 GB, free: 9.629 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3908, allocations: 0 / 0.4991 GB, free: 9.629 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00144/0.3922, allocations: 0.6523 MB / 0.4998 GB, free: 8.977 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.006548/0.3988, allocations: 3.814 MB / 0.5035 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004438/0.4032, allocations: 2.553 MB / 0.506 GB, free: 2.355 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4033, allocations: 0 / 0.506 GB, free: 2.355 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00255/0.4058, allocations: 1.948 MB / 0.5079 GB, free: 260 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.4083, allocations: 0.6373 MB / 0.5085 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.159/0.5674, allocations: 22.41 MB / 0.5304 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.5684, allocations: 1.665 MB / 0.532 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001517/0.5699, allocations: 391.7 kB / 0.5324 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.571, allocations: 1.196 MB / 0.5336 GB, free: 142.8 MB / 446.1 MB Notification: Performance of SimCode: time 4.91e-07/0.571, allocations: 1.344 kB / 0.5336 GB, free: 142.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1172/0.6882, allocations: 65.95 MB / 0.598 GB, free: 90.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.49, allocations: 2.953 kB / 0.598 GB, free: 90.15 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/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) Reference file matches