Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 59.05 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.264, allocations: 49.17 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01222/0.2762, allocations: 13.58 MB / 409.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03057/0.3068, allocations: 19.46 MB / 429.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00348/0.3103, allocations: 192.4 kB / 429.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004042/0.3143, allocations: 1.1 MB / 430.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009953/0.3243, allocations: 2.306 MB / 433 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006015/0.3303, allocations: 1.398 MB / 434.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01334/0.3436, allocations: 6.329 MB / 440.7 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008978/0.3445, allocations: 253.1 kB / 441 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002263/0.3468, allocations: 1.042 MB / 442 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002153/0.3489, allocations: 1.064 MB / 443.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003972/0.3493, allocations: 76 kB / 443.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005739/0.3551, allocations: 1.159 MB / 444.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004617/0.3555, allocations: 321.7 kB / 444.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002211/0.3577, allocations: 1.324 MB / 445.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007693/0.3654, allocations: 3.745 MB / 449.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3654, allocations: 0 / 449.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3654, allocations: 4 kB / 449.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001475/0.3656, allocations: 0 / 449.7 MB, free: 13.81 MB / 366.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.00708/0.3727, allocations: 3.625 MB / 453.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3727, allocations: 11.98 kB / 453.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002017/0.3729, allocations: 106.4 kB / 453.4 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006505/0.3736, allocations: 401.5 kB / 453.8 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004658/0.3782, allocations: 2.398 MB / 456.2 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.3783, allocations: 36.94 kB / 456.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.3784, allocations: 55.98 kB / 456.3 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.3801, allocations: 0.7616 MB / 457.1 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.3801, allocations: 0 / 457.1 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/0.3802, allocations: 16 kB / 457.1 MB, free: 6.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.399e-05/0.3803, allocations: 19.98 kB / 457.1 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001962/0.3822, allocations: 0.8592 MB / 458 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005985/0.3882, allocations: 2.93 MB / 460.9 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.39, allocations: 0.7169 MB / 461.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.3915, allocations: 0.8743 MB / 462.5 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02845/0.42, allocations: 13.78 MB / 476.3 MB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001332/0.4213, allocations: 0.588 MB / 476.8 MB, free: 2.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.727e-06/0.4213, allocations: 0 / 476.8 MB, free: 2.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01289/0.4342, allocations: 4.54 MB / 481.4 MB, free: 13.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.291e-05/0.4342, allocations: 72.38 kB / 481.5 MB, free: 13.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004313/0.4386, allocations: 2.709 MB / 484.2 MB, free: 10.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.4387, allocations: 49.69 kB / 484.2 MB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.4402, allocations: 1.304 MB / 485.5 MB, free: 9.238 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004367/0.4406, allocations: 352.9 kB / 485.9 MB, free: 8.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004929/0.4411, allocations: 238.4 kB / 486.1 MB, free: 8.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.4413, allocations: 341.9 kB / 486.4 MB, free: 8.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.4426, allocations: 478 kB / 486.9 MB, free: 7.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.4442, allocations: 0.6431 MB / 487.5 MB, free: 7.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002784/0.4469, allocations: 1.137 MB / 488.7 MB, free: 5.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/0.4469, allocations: 4 kB / 488.7 MB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004606/0.4516, allocations: 1.827 MB / 490.5 MB, free: 4.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.4516, allocations: 15.94 kB / 490.5 MB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001942/0.4518, allocations: 120 kB / 490.6 MB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007974/0.4526, allocations: 264.4 kB / 490.9 MB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008998/0.4535, allocations: 191.7 kB / 491.1 MB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.4646, allocations: 13.23 MB / 0.4925 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.4661, allocations: 95.95 kB / 0.4926 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.4664, allocations: 56 kB / 0.4926 GB, free: 4.93 MB / 414.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.001059/0.4674, allocations: 430.2 kB / 0.4931 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007426/0.4682, allocations: 389.6 kB / 0.4934 GB, free: 4.117 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005389/0.4736, allocations: 2.064 MB / 0.4954 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.4736, allocations: 8 kB / 0.4954 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.4736, allocations: 7.984 kB / 0.4955 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.4736, allocations: 3.984 kB / 0.4955 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002453/0.4761, allocations: 1.523 MB / 0.4969 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001763/0.4762, allocations: 120 kB / 0.4971 GB, free: 316 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007439/0.477, allocations: 135.8 kB / 0.4972 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007182/0.4777, allocations: 264.3 kB / 0.4974 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.4778, allocations: 39.98 kB / 0.4975 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/0.4889, allocations: 13.23 MB / 0.5104 GB, free: 1.477 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.4889, allocations: 3.984 kB / 0.5104 GB, free: 1.473 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005943/0.4949, allocations: 2.411 MB / 0.5128 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.4961, allocations: 443.3 kB / 0.5132 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005206/0.4966, allocations: 20 kB / 0.5132 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.4978, allocations: 83.89 kB / 0.5133 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004172/0.4982, allocations: 140.7 kB / 0.5134 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.4984, allocations: 55.98 kB / 0.5135 GB, free: 14.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003639/0.502, allocations: 1.786 MB / 0.5152 GB, free: 12.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.502, allocations: 3.938 kB / 0.5152 GB, free: 12.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001932/0.5039, allocations: 0.6595 MB / 0.5159 GB, free: 11.82 MB / 446.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.00774/0.5117, allocations: 3.686 MB / 0.5195 GB, free: 8.074 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004448/0.5161, allocations: 2.44 MB / 0.5218 GB, free: 5.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5161, allocations: 0 / 0.5218 GB, free: 5.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002881/0.519, allocations: 1.913 MB / 0.5237 GB, free: 3.414 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/0.5216, allocations: 0.5249 MB / 0.5242 GB, free: 2.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03302/0.5546, allocations: 18.01 MB / 0.5418 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/0.5559, allocations: 1.666 MB / 0.5434 GB, free: 14.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001346/0.5573, allocations: 395.3 kB / 0.5438 GB, free: 14.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/0.5587, allocations: 1.202 MB / 0.545 GB, free: 13.21 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5587, allocations: 3.938 kB / 0.545 GB, free: 13.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3306/0.8893, allocations: 68.02 MB / 0.6114 GB, free: 109.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.64/20.53, allocations: 0 / 0.6114 GB, free: 109.6 MB / 478.1 MB " [Timeout remaining time 639] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 24.014800445875153]