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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 214 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.89 kB / 377.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2479, allocations: 53.41 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01366/0.2616, allocations: 11.98 MB / 443.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02253/0.2841, allocations: 17.58 MB / 460.7 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.2859, allocations: 193.8 kB / 460.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002495/0.2884, allocations: 1.03 MB / 461.9 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006105/0.2945, allocations: 2.324 MB / 464.2 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003881/0.2984, allocations: 1.418 MB / 465.6 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009727/0.3081, allocations: 6.537 MB / 472.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006537/0.3088, allocations: 249 kB / 472.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.3107, allocations: 1.14 MB / 473.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.3122, allocations: 1.04 MB / 474.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002076/0.3124, allocations: 76 kB / 474.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.3159, allocations: 1.206 MB / 475.9 MB, free: 9.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003561/0.3162, allocations: 321.7 kB / 476.2 MB, free: 9.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.3174, allocations: 0.978 MB / 477.2 MB, free: 8.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.3226, allocations: 3.741 MB / 480.9 MB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3226, allocations: 0 / 480.9 MB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3226, allocations: 0 / 480.9 MB, free: 4.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.541e-05/0.3226, allocations: 0 / 480.9 MB, free: 4.445 MB / 382.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.005483/0.3281, allocations: 3.617 MB / 484.5 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3282, allocations: 11.98 kB / 484.5 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.3283, allocations: 98.45 kB / 484.6 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004447/0.3287, allocations: 401.5 kB / 485 MB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003995/0.3327, allocations: 2.371 MB / 487.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.3328, allocations: 33 kB / 487.4 MB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.3329, allocations: 51.98 kB / 487.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.3344, allocations: 0.7693 MB / 488.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3344, allocations: 0 / 488.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.698e-05/0.3345, allocations: 16 kB / 488.3 MB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.3345, allocations: 23.98 kB / 488.3 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001848/0.3364, allocations: 0.8514 MB / 489.1 MB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005211/0.3416, allocations: 2.77 MB / 491.9 MB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.3433, allocations: 0.713 MB / 492.6 MB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.3448, allocations: 0.8715 MB / 493.5 MB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02676/0.3716, allocations: 13.68 MB / 0.4953 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/0.3728, allocations: 0.5957 MB / 0.4959 GB, free: 8.949 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.885e-06/0.3728, allocations: 0 / 0.4959 GB, free: 8.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01196/0.3848, allocations: 4.521 MB / 0.5003 GB, free: 4.363 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.3848, allocations: 72.39 kB / 0.5004 GB, free: 4.277 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003338/0.3882, allocations: 2.7 MB / 0.503 GB, free: 1.562 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.038e-05/0.3883, allocations: 41.7 kB / 0.503 GB, free: 1.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/0.3895, allocations: 1.312 MB / 0.5043 GB, free: 204 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.3898, allocations: 353.2 kB / 0.5047 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.3902, allocations: 230.4 kB / 0.5049 GB, free: 15.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3903, allocations: 349.9 kB / 0.5052 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.3916, allocations: 478 kB / 0.5057 GB, free: 14.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.3931, allocations: 0.647 MB / 0.5063 GB, free: 14.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/0.3958, allocations: 1.133 MB / 0.5074 GB, free: 12.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3958, allocations: 0 / 0.5074 GB, free: 12.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00401/0.3998, allocations: 1.834 MB / 0.5092 GB, free: 11.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3998, allocations: 4 kB / 0.5092 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/0.4, allocations: 124 kB / 0.5093 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006852/0.4007, allocations: 260.9 kB / 0.5096 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008837/0.4015, allocations: 203.7 kB / 0.5098 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.4118, allocations: 13.18 MB / 0.5226 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.413, allocations: 83.91 kB / 0.5227 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.4131, allocations: 59.98 kB / 0.5228 GB, free: 11.95 MB / 446.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.0007805/0.4139, allocations: 433 kB / 0.5232 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004098/0.4143, allocations: 385.6 kB / 0.5236 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004901/0.4192, allocations: 2.064 MB / 0.5256 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4192, allocations: 8 kB / 0.5256 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4192, allocations: 4 kB / 0.5256 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4193, allocations: 3.984 kB / 0.5256 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.4211, allocations: 1.39 MB / 0.5269 GB, free: 7.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001637/0.4213, allocations: 116 kB / 0.5271 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007269/0.422, allocations: 135.8 kB / 0.5272 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006484/0.4227, allocations: 268.3 kB / 0.5274 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.955e-05/0.4228, allocations: 43.98 kB / 0.5275 GB, free: 7.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/0.4333, allocations: 13.19 MB / 0.5404 GB, free: 8.656 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4333, allocations: 4.031 kB / 0.5404 GB, free: 8.652 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005766/0.4391, allocations: 2.403 MB / 0.5427 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.4404, allocations: 431.3 kB / 0.5431 GB, free: 5.773 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004291/0.4408, allocations: 24 kB / 0.5431 GB, free: 5.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.4419, allocations: 79.89 kB / 0.5432 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/0.4422, allocations: 148.7 kB / 0.5434 GB, free: 5.527 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.4423, allocations: 47.92 kB / 0.5434 GB, free: 5.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002788/0.4451, allocations: 1.774 MB / 0.5451 GB, free: 3.699 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4451, allocations: 4 kB / 0.5451 GB, free: 3.695 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001635/0.4467, allocations: 0.6596 MB / 0.5458 GB, free: 3.035 MB / 462.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.1937/0.6405, allocations: 3.672 MB / 0.5494 GB, free: 119.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.6444, allocations: 2.449 MB / 0.5518 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.6444, allocations: 1.344 kB / 0.5518 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002245/0.6467, allocations: 1.906 MB / 0.5536 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/0.6493, allocations: 0.6226 MB / 0.5542 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02279/0.6721, allocations: 17.9 MB / 0.5717 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.6728, allocations: 1.104 MB / 0.5728 GB, free: 103.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001132/0.6739, allocations: 387.2 kB / 0.5732 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008726/0.6748, allocations: 1.191 MB / 0.5743 GB, free: 102.4 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6748, allocations: 0 / 0.5743 GB, free: 102.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1217/0.7965, allocations: 70.73 MB / 0.6434 GB, free: 32.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.2/17, allocations: 0 / 0.6434 GB, free: 32.18 MB / 462.1 MB " [Timeout remaining time 643] (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.000997606 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/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_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.Sinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.614102545194328]