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.00128/0.00128, allocations: 104.7 kB / 21.96 MB, free: 5.219 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.001377/0.001377, allocations: 210.1 kB / 25.25 MB, free: 3.133 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.338/1.338, allocations: 207.7 MB / 236.1 MB, free: 9.797 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",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.001844/0.001844, allocations: 59.91 kB / 348 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2633, allocations: 49.16 MB / 397.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01026/0.2736, allocations: 11.41 MB / 408.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02256/0.2961, allocations: 16.74 MB / 425.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00331/0.2994, allocations: 192.2 kB / 425.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003236/0.3027, allocations: 0.9972 MB / 426.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00907/0.3118, allocations: 2.286 MB / 428.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004756/0.3165, allocations: 1.366 MB / 430.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.327, allocations: 6.317 MB / 436.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005939/0.3276, allocations: 261.1 kB / 436.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001771/0.3294, allocations: 1.046 MB / 437.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.3307, allocations: 1.056 MB / 438.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.3309, allocations: 76 kB / 438.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003591/0.3345, allocations: 1.124 MB / 440 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003835/0.3349, allocations: 325.7 kB / 440.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.3361, allocations: 0.9818 MB / 441.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005337/0.3414, allocations: 3.772 MB / 445.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3414, allocations: 0 / 445.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3414, allocations: 0 / 445.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.354e-05/0.3415, allocations: 0 / 445.1 MB, free: 3.023 MB / 350.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.005066/0.3466, allocations: 3.629 MB / 448.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3466, allocations: 15.98 kB / 448.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.67e-05/0.3466, allocations: 13 kB / 448.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.3467, allocations: 98.5 kB / 448.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004154/0.3472, allocations: 401.5 kB / 449.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003464/0.3506, allocations: 2.402 MB / 451.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.3507, allocations: 40.98 kB / 451.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3508, allocations: 48 kB / 451.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.3523, allocations: 0.7577 MB / 452.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.3523, allocations: 7.938 kB / 452.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-05/0.3524, allocations: 16 kB / 452.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.3524, allocations: 23.98 kB / 452.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.3542, allocations: 0.8553 MB / 453.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005148/0.3594, allocations: 2.786 MB / 456.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.3612, allocations: 0.7246 MB / 456.9 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.3626, allocations: 0.8598 MB / 457.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0248/0.3874, allocations: 13.7 MB / 471.4 MB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.3886, allocations: 0.5995 MB / 472 MB, free: 7.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.056e-06/0.3886, allocations: 0 / 472 MB, free: 7.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01162/0.4002, allocations: 4.525 MB / 476.5 MB, free: 2.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.4003, allocations: 68.39 kB / 476.6 MB, free: 2.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003214/0.4035, allocations: 2.709 MB / 479.3 MB, free: 32 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.4036, allocations: 45.69 kB / 479.4 MB, free: 15.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.4048, allocations: 1.304 MB / 480.7 MB, free: 14.67 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003184/0.4051, allocations: 353 kB / 481 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.4055, allocations: 242.4 kB / 481.3 MB, free: 14.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4056, allocations: 341.9 kB / 481.6 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.4068, allocations: 477.9 kB / 482.1 MB, free: 13.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.4082, allocations: 0.6509 MB / 482.7 MB, free: 12.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/0.4106, allocations: 1.133 MB / 483.8 MB, free: 11.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4106, allocations: 0 / 483.8 MB, free: 11.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004094/0.4147, allocations: 1.843 MB / 485.7 MB, free: 9.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.4147, allocations: 8 kB / 485.7 MB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001669/0.4149, allocations: 120 kB / 485.8 MB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007435/0.4156, allocations: 272.4 kB / 486.1 MB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000861/0.4165, allocations: 187.7 kB / 486.3 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.4267, allocations: 13.18 MB / 499.4 MB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/0.4282, allocations: 92.02 kB / 499.5 MB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.4283, allocations: 60 kB / 499.6 MB, free: 10.4 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.0009633/0.4293, allocations: 422.2 kB / 500 MB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006334/0.4299, allocations: 389.6 kB / 0.4886 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004826/0.4347, allocations: 2.077 MB / 0.4907 GB, free: 7.477 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.4348, allocations: 8 kB / 0.4907 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.4348, allocations: 11.94 kB / 0.4907 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.4348, allocations: 3.984 kB / 0.4907 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.4369, allocations: 1.406 MB / 0.4921 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001564/0.4371, allocations: 116 kB / 0.4922 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007145/0.4378, allocations: 135.8 kB / 0.4923 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006717/0.4385, allocations: 264.3 kB / 0.4926 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.4386, allocations: 43.98 kB / 0.4926 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009988/0.4486, allocations: 13.19 MB / 0.5055 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4486, allocations: 0 / 0.5055 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005504/0.4541, allocations: 2.407 MB / 0.5078 GB, free: 4.633 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009955/0.4551, allocations: 439.3 kB / 0.5083 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003083/0.4554, allocations: 16 kB / 0.5083 GB, free: 4.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009367/0.4563, allocations: 83.89 kB / 0.5083 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003909/0.4567, allocations: 148.7 kB / 0.5085 GB, free: 3.953 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.4568, allocations: 51.92 kB / 0.5085 GB, free: 3.902 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002469/0.4593, allocations: 1.782 MB / 0.5103 GB, free: 2.113 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4593, allocations: 0 / 0.5103 GB, free: 2.113 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001629/0.4609, allocations: 0.6596 MB / 0.5109 GB, free: 1.453 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.006884/0.4678, allocations: 3.698 MB / 0.5145 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004234/0.472, allocations: 2.436 MB / 0.5169 GB, free: 11.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.472, allocations: 0 / 0.5169 GB, free: 11.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.4747, allocations: 1.913 MB / 0.5188 GB, free: 9.039 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.4768, allocations: 0.5245 MB / 0.5193 GB, free: 8.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02994/0.5067, allocations: 18 MB / 0.5369 GB, free: 6.121 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.5078, allocations: 1.112 MB / 0.538 GB, free: 4.977 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.5089, allocations: 395.4 kB / 0.5383 GB, free: 4.586 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/0.5103, allocations: 1.202 MB / 0.5395 GB, free: 3.383 MB / 462.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5103, allocations: 0 / 0.5395 GB, free: 3.383 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3284/0.8387, allocations: 70.91 MB / 0.6088 GB, free: 116 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.37/19.21, allocations: 8.391 kB / 0.6088 GB, free: 116 MB / 478.1 MB " [Timeout remaining time 641] (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: 23.279612676938996]