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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002215/0.002215, allocations: 195.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 47.91 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2265, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01432/0.2408, allocations: 11.97 MB / 434.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0231/0.2639, allocations: 17.53 MB / 452.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.2654, allocations: 197.8 kB / 452.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.2678, allocations: 1.03 MB / 453.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006386/0.2742, allocations: 2.324 MB / 455.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004041/0.2783, allocations: 1.414 MB / 457 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009692/0.288, allocations: 6.447 MB / 463.5 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005523/0.2885, allocations: 245 kB / 463.7 MB, free: 5.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.2901, allocations: 1.143 MB / 464.9 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.2914, allocations: 1.04 MB / 465.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.2916, allocations: 76 kB / 466 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003109/0.2948, allocations: 1.206 MB / 467.2 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003203/0.2951, allocations: 325.7 kB / 467.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009983/0.2961, allocations: 0.978 MB / 468.5 MB, free: 288 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004357/0.3004, allocations: 3.745 MB / 472.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3004, allocations: 0 / 472.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.3004, allocations: 0 / 472.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.788e-05/0.3005, allocations: 0 / 472.2 MB, free: 12.52 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.00546/0.3059, allocations: 3.602 MB / 475.8 MB, free: 8.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.306, allocations: 8.031 kB / 475.8 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001317/0.3061, allocations: 98.5 kB / 475.9 MB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/0.3066, allocations: 401.5 kB / 476.3 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003977/0.3105, allocations: 2.378 MB / 478.7 MB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.3106, allocations: 37 kB / 478.7 MB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.3107, allocations: 55.94 kB / 478.8 MB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.3122, allocations: 0.7538 MB / 479.5 MB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.3122, allocations: 4 kB / 479.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.3123, allocations: 23.94 kB / 479.6 MB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.3123, allocations: 23.98 kB / 479.6 MB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.3142, allocations: 0.8553 MB / 480.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004959/0.3191, allocations: 2.762 MB / 483.2 MB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3209, allocations: 0.7207 MB / 483.9 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.3224, allocations: 0.86 MB / 484.8 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02749/0.3499, allocations: 13.65 MB / 498.4 MB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001278/0.3512, allocations: 0.5958 MB / 499 MB, free: 1.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.216e-06/0.3512, allocations: 0 / 499 MB, free: 1.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01225/0.3634, allocations: 4.525 MB / 0.4918 GB, free: 12.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.3635, allocations: 72.39 kB / 0.4918 GB, free: 12.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.3669, allocations: 2.696 MB / 0.4945 GB, free: 9.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.744e-05/0.367, allocations: 41.7 kB / 0.4945 GB, free: 9.637 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.3682, allocations: 1.308 MB / 0.4958 GB, free: 8.324 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003095/0.3685, allocations: 356.9 kB / 0.4961 GB, free: 7.973 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003529/0.3689, allocations: 234.4 kB / 0.4963 GB, free: 7.738 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.369, allocations: 345.9 kB / 0.4967 GB, free: 7.395 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.3703, allocations: 474 kB / 0.4971 GB, free: 6.934 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3718, allocations: 0.6509 MB / 0.4978 GB, free: 6.215 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.3745, allocations: 1.126 MB / 0.4989 GB, free: 5.027 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3745, allocations: 8 kB / 0.4989 GB, free: 5.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004225/0.3787, allocations: 1.831 MB / 0.5007 GB, free: 3.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.3788, allocations: 8 kB / 0.5007 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001844/0.3789, allocations: 120 kB / 0.5008 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000713/0.3797, allocations: 268.7 kB / 0.501 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008967/0.3805, allocations: 203.6 kB / 0.5012 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.3911, allocations: 13.19 MB / 0.5141 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.3925, allocations: 92.08 kB / 0.5142 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.3926, allocations: 59.98 kB / 0.5143 GB, free: 4.055 MB / 430.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.0008319/0.3934, allocations: 429.5 kB / 0.5147 GB, free: 3.625 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005151/0.3939, allocations: 385.6 kB / 0.515 GB, free: 3.246 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004986/0.3989, allocations: 2.048 MB / 0.517 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.3989, allocations: 15.98 kB / 0.517 GB, free: 1.141 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.399, allocations: 4 kB / 0.517 GB, free: 1.137 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.399, allocations: 3.984 kB / 0.5171 GB, free: 1.133 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.4009, allocations: 1.39 MB / 0.5184 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001608/0.4011, allocations: 112 kB / 0.5185 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007314/0.4018, allocations: 135.8 kB / 0.5186 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00067/0.4025, allocations: 272.3 kB / 0.5189 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.601e-05/0.4026, allocations: 47.98 kB / 0.5189 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/0.413, allocations: 13.19 MB / 0.5318 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.413, allocations: 0 / 0.5318 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005682/0.4187, allocations: 2.414 MB / 0.5342 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.4198, allocations: 435.3 kB / 0.5346 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/0.4201, allocations: 16 kB / 0.5346 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.4211, allocations: 83.89 kB / 0.5347 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.4215, allocations: 140.8 kB / 0.5348 GB, free: 13.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.4216, allocations: 67.78 kB / 0.5349 GB, free: 13.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002501/0.4241, allocations: 1.77 MB / 0.5366 GB, free: 11.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4241, allocations: 0 / 0.5366 GB, free: 11.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001503/0.4256, allocations: 0.6518 MB / 0.5373 GB, free: 11.15 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.006938/0.4325, allocations: 3.659 MB / 0.5408 GB, free: 7.434 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004308/0.4368, allocations: 2.456 MB / 0.5432 GB, free: 4.824 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4368, allocations: 0 / 0.5432 GB, free: 4.824 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002724/0.4395, allocations: 1.909 MB / 0.5451 GB, free: 2.758 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002501/0.442, allocations: 0.617 MB / 0.5457 GB, free: 2.137 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1936/0.6356, allocations: 17.9 MB / 0.5632 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007487/0.6364, allocations: 1.108 MB / 0.5643 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.6374, allocations: 392.8 kB / 0.5646 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009113/0.6383, allocations: 1.198 MB / 0.5658 GB, free: 115.8 MB / 462.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6383, allocations: 2.734 kB / 0.5658 GB, free: 115.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1404/0.7787, allocations: 70.71 MB / 0.6349 GB, free: 45.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.24/17.02, allocations: 7.094 kB / 0.6349 GB, free: 45.95 MB / 462.1 MB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.782346058171242]