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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 110.6 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 190.9 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09189, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1722/0.2641, allocations: 13.52 MB / 388.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02178/0.2859, allocations: 19.36 MB / 407.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002561/0.2885, allocations: 126.2 kB / 407.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003058/0.2917, allocations: 1.099 MB / 408.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008571/0.3003, allocations: 2.251 MB / 411 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005137/0.3054, allocations: 1.383 MB / 412.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01122/0.3167, allocations: 6.281 MB / 418.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007645/0.3175, allocations: 430.5 kB / 419.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.3192, allocations: 0.9804 MB / 420.1 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.3205, allocations: 1.065 MB / 421.1 MB, free: 260 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001911/0.3207, allocations: 75.06 kB / 421.2 MB, free: 260 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004508/0.3253, allocations: 1.159 MB / 422.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004258/0.3257, allocations: 323.6 kB / 422.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001783/0.3275, allocations: 1.327 MB / 424 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005869/0.3334, allocations: 3.737 MB / 427.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3334, allocations: 0 / 427.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3334, allocations: 0 / 427.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.356e-05/0.3335, allocations: 4 kB / 427.7 MB, free: 10.65 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.005521/0.339, allocations: 3.708 MB / 431.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3391, allocations: 12.03 kB / 431.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.3392, allocations: 94.5 kB / 431.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005193/0.3397, allocations: 401.5 kB / 431.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/0.3435, allocations: 2.575 MB / 434.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.3435, allocations: 40.98 kB / 434.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.3437, allocations: 48 kB / 434.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.3453, allocations: 0.7576 MB / 435.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.3454, allocations: 0 / 435.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.3455, allocations: 20 kB / 435.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.3455, allocations: 23.97 kB / 435.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002063/0.3476, allocations: 0.8592 MB / 436.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005039/0.3526, allocations: 2.987 MB / 439.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/0.3545, allocations: 0.791 MB / 440 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/0.3561, allocations: 0.9486 MB / 441 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03269/0.3888, allocations: 30.13 MB / 471.1 MB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001268/0.3901, allocations: 0.5966 MB / 471.7 MB, free: 10.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.166e-06/0.3901, allocations: 0 / 471.7 MB, free: 10.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01319/0.4033, allocations: 5.293 MB / 477 MB, free: 4.766 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.4034, allocations: 68.39 kB / 477.1 MB, free: 4.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00367/0.407, allocations: 2.709 MB / 479.8 MB, free: 1.965 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.4072, allocations: 49.69 kB / 479.8 MB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001229/0.4085, allocations: 1.3 MB / 481.1 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/0.4088, allocations: 360.9 kB / 481.5 MB, free: 256 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003675/0.4092, allocations: 234.4 kB / 481.7 MB, free: 16 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4094, allocations: 350 kB / 482.1 MB, free: 15.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.4107, allocations: 470 kB / 482.5 MB, free: 15.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.4122, allocations: 0.6509 MB / 483.2 MB, free: 14.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/0.415, allocations: 1.13 MB / 484.3 MB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.415, allocations: 0 / 484.3 MB, free: 13.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004622/0.4197, allocations: 1.99 MB / 486.3 MB, free: 11.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.4197, allocations: 11.97 kB / 486.3 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/0.4199, allocations: 124 kB / 486.4 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000771/0.4207, allocations: 279 kB / 486.7 MB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009308/0.4216, allocations: 195.7 kB / 486.9 MB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.4328, allocations: 14.25 MB / 0.4894 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.4345, allocations: 91.83 kB / 0.4895 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.4346, allocations: 60.06 kB / 0.4895 GB, free: 10.8 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.0009043/0.4355, allocations: 421.7 kB / 0.4899 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004974/0.436, allocations: 393.5 kB / 0.4903 GB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005102/0.4412, allocations: 2.215 MB / 0.4925 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.4412, allocations: 12 kB / 0.4925 GB, free: 7.691 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.4412, allocations: 4 kB / 0.4925 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.4412, allocations: 3.984 kB / 0.4925 GB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.4433, allocations: 1.555 MB / 0.494 GB, free: 6.074 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001503/0.4435, allocations: 108 kB / 0.4941 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007506/0.4443, allocations: 139.8 kB / 0.4943 GB, free: 5.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006845/0.4449, allocations: 268.3 kB / 0.4945 GB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.4451, allocations: 47.97 kB / 0.4946 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/0.4561, allocations: 14.24 MB / 0.5085 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4561, allocations: 3.984 kB / 0.5085 GB, free: 5.852 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005906/0.4621, allocations: 2.565 MB / 0.511 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009495/0.463, allocations: 0.5063 MB / 0.5115 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003086/0.4633, allocations: 19.98 kB / 0.5115 GB, free: 2.652 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009574/0.4643, allocations: 83.89 kB / 0.5116 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/0.4647, allocations: 140.7 kB / 0.5117 GB, free: 2.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.4648, allocations: 55.92 kB / 0.5117 GB, free: 2.379 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002633/0.4675, allocations: 1.786 MB / 0.5135 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4675, allocations: 0 / 0.5135 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001643/0.4691, allocations: 0.6596 MB / 0.5141 GB, free: 15.92 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.007166/0.4763, allocations: 3.85 MB / 0.5179 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004549/0.4809, allocations: 2.522 MB / 0.5204 GB, free: 9.305 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4809, allocations: 4.062 kB / 0.5204 GB, free: 9.301 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002825/0.4838, allocations: 1.956 MB / 0.5223 GB, free: 7.191 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.4859, allocations: 0.5207 MB / 0.5228 GB, free: 6.664 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03159/0.5175, allocations: 18.34 MB / 0.5407 GB, free: 3.875 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/0.5189, allocations: 1.67 MB / 0.5423 GB, free: 2.176 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001236/0.5201, allocations: 391.4 kB / 0.5427 GB, free: 1.789 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/0.5215, allocations: 1.206 MB / 0.5439 GB, free: 0.582 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5215, allocations: 0 / 0.5439 GB, free: 0.582 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3013/0.8228, allocations: 66.91 MB / 0.6092 GB, free: 111.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.07/18.89, allocations: 7.875 kB / 0.6092 GB, free: 111.4 MB / 478.1 MB (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 --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) 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) Reference file matches