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.001503/0.001503, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001535/0.001535, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.358/1.358, allocations: 225.7 MB / 253.3 MB, free: 12.82 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 47.92 kB / 371.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2548, allocations: 52.18 MB / 423.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01304/0.2678, allocations: 11.97 MB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02349/0.2913, allocations: 17.53 MB / 452.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003354/0.2947, allocations: 189.9 kB / 453 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003541/0.2982, allocations: 1.034 MB / 454.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00776/0.306, allocations: 2.324 MB / 456.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.3105, allocations: 1.414 MB / 457.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.3207, allocations: 6.45 MB / 464.3 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005512/0.3212, allocations: 257 kB / 464.5 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.3229, allocations: 1.147 MB / 465.6 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.3244, allocations: 1.083 MB / 466.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.3246, allocations: 76 kB / 466.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.328, allocations: 1.237 MB / 468 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003494/0.3284, allocations: 325.7 kB / 468.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.3295, allocations: 0.978 MB / 469.3 MB, free: 164 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004833/0.3343, allocations: 3.741 MB / 473.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3343, allocations: 0 / 473.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3343, allocations: 0 / 473.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.344e-05/0.3344, allocations: 0 / 473.1 MB, free: 12.4 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.005361/0.3397, allocations: 3.606 MB / 476.7 MB, free: 8.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3398, allocations: 12.03 kB / 476.7 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.876e-05/0.3398, allocations: 13 kB / 476.7 MB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.3399, allocations: 94.5 kB / 476.8 MB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004519/0.3404, allocations: 397.5 kB / 477.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.344, allocations: 2.386 MB / 479.6 MB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.359e-05/0.344, allocations: 33 kB / 479.6 MB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.3441, allocations: 55.94 kB / 479.7 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.3456, allocations: 0.7616 MB / 480.4 MB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3457, allocations: 0 / 480.4 MB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.759e-05/0.3457, allocations: 16 kB / 480.4 MB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.3458, allocations: 23.98 kB / 480.5 MB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.3475, allocations: 0.8592 MB / 481.3 MB, free: 3.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004871/0.3524, allocations: 2.767 MB / 484.1 MB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.354, allocations: 0.7246 MB / 484.8 MB, free: 432 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.3555, allocations: 0.8637 MB / 485.7 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02501/0.3805, allocations: 13.65 MB / 499.3 MB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.3817, allocations: 0.5957 MB / 499.9 MB, free: 0.9219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.256e-06/0.3817, allocations: 0 / 499.9 MB, free: 0.9219 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01174/0.3934, allocations: 4.525 MB / 0.4926 GB, free: 12.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/0.3935, allocations: 76.31 kB / 0.4927 GB, free: 12.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003407/0.3969, allocations: 2.688 MB / 0.4953 GB, free: 9.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.97e-05/0.397, allocations: 45.7 kB / 0.4954 GB, free: 9.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.3982, allocations: 1.308 MB / 0.4966 GB, free: 8.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.3986, allocations: 353 kB / 0.497 GB, free: 7.832 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003906/0.399, allocations: 234.5 kB / 0.4972 GB, free: 7.598 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3991, allocations: 345.9 kB / 0.4975 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.4003, allocations: 474 kB / 0.498 GB, free: 6.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.4017, allocations: 0.6431 MB / 0.4986 GB, free: 6.078 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/0.4041, allocations: 1.137 MB / 0.4997 GB, free: 4.879 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.4041, allocations: 0 / 0.4997 GB, free: 4.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003879/0.408, allocations: 1.839 MB / 0.5015 GB, free: 3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.408, allocations: 8 kB / 0.5015 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/0.4082, allocations: 120 kB / 0.5016 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007133/0.4089, allocations: 264.5 kB / 0.5019 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008549/0.4098, allocations: 195.7 kB / 0.5021 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.42, allocations: 13.19 MB / 0.515 GB, free: 4.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.4214, allocations: 92.08 kB / 0.515 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.4216, allocations: 64 kB / 0.5151 GB, free: 3.914 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.0008722/0.4225, allocations: 421.5 kB / 0.5155 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.423, allocations: 385.6 kB / 0.5159 GB, free: 3.113 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00477/0.4278, allocations: 2.063 MB / 0.5179 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.4278, allocations: 8 kB / 0.5179 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4278, allocations: 7.984 kB / 0.5179 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.4278, allocations: 7.984 kB / 0.5179 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/0.4297, allocations: 1.39 MB / 0.5193 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001574/0.4299, allocations: 120 kB / 0.5194 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007154/0.4306, allocations: 135.8 kB / 0.5195 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006874/0.4313, allocations: 264.3 kB / 0.5198 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.671e-05/0.4314, allocations: 43.98 kB / 0.5198 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/0.442, allocations: 13.19 MB / 0.5327 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.442, allocations: 3.938 kB / 0.5327 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005705/0.4477, allocations: 2.414 MB / 0.535 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.4488, allocations: 435.3 kB / 0.5355 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/0.4491, allocations: 20 kB / 0.5355 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009402/0.45, allocations: 83.88 kB / 0.5356 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/0.4504, allocations: 136.8 kB / 0.5357 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.4505, allocations: 59.91 kB / 0.5357 GB, free: 13.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002479/0.453, allocations: 1.77 MB / 0.5375 GB, free: 11.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.453, allocations: 0 / 0.5375 GB, free: 11.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001595/0.4546, allocations: 0.6557 MB / 0.5381 GB, free: 11.01 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.006798/0.4614, allocations: 3.67 MB / 0.5417 GB, free: 7.285 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004403/0.4658, allocations: 2.448 MB / 0.5441 GB, free: 4.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4658, allocations: 0 / 0.5441 GB, free: 4.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002636/0.4684, allocations: 1.909 MB / 0.546 GB, free: 2.617 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.4709, allocations: 0.6181 MB / 0.5466 GB, free: 1.992 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2073/0.6782, allocations: 17.89 MB / 0.564 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007254/0.6789, allocations: 1.11 MB / 0.5651 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009194/0.6798, allocations: 392.9 kB / 0.5655 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000856/0.6807, allocations: 1.203 MB / 0.5667 GB, free: 115.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6807, allocations: 0 / 0.5667 GB, free: 115.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/0.7948, allocations: 70.5 MB / 0.6355 GB, free: 46.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/18.98, allocations: 19.06 kB / 0.6355 GB, free: 46.09 MB / 462.1 MB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 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.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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 23.080939942970872]