Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001421/0.001422, allocations: 105.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001642/0.001642, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.88 kB / 306.3 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.0923, allocations: 50.54 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01144/0.1038, allocations: 14.07 MB / 371 MB, free: 52 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1607/0.2645, allocations: 20.55 MB / 391.5 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002097/0.2666, allocations: 67.94 kB / 391.6 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00295/0.2696, allocations: 0.9774 MB / 392.6 MB, free: 384 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00769/0.2773, allocations: 1.916 MB / 394.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004673/0.282, allocations: 1.205 MB / 395.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.2921, allocations: 6.387 MB / 402.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006636/0.2928, allocations: 410.7 kB / 402.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.2946, allocations: 1.04 MB / 403.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008853/0.2954, allocations: 1.054 MB / 404.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.2956, allocations: 50.47 kB / 404.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004075/0.2997, allocations: 1.462 MB / 406.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002875/0.3, allocations: 292.9 kB / 406.4 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001164/0.3012, allocations: 1.309 MB / 407.7 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003775/0.305, allocations: 3.58 MB / 411.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.305, allocations: 0 / 411.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.305, allocations: 0 / 411.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.543e-05/0.305, allocations: 3.938 kB / 411.2 MB, free: 5.344 MB / 318.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.004422/0.3094, allocations: 3.565 MB / 414.8 MB, free: 1.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3095, allocations: 16.02 kB / 414.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.3096, allocations: 94.52 kB / 414.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003439/0.31, allocations: 379.4 kB / 415.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003111/0.3131, allocations: 2.544 MB / 417.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.3131, allocations: 37 kB / 417.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.3132, allocations: 52 kB / 417.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.3146, allocations: 0.7507 MB / 418.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3146, allocations: 0 / 418.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.22e-05/0.3147, allocations: 20 kB / 418.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.3147, allocations: 23.92 kB / 418.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.3164, allocations: 0.8592 MB / 419.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00425/0.3207, allocations: 2.962 MB / 422.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.3223, allocations: 0.796 MB / 423.3 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.3237, allocations: 0.9565 MB / 424.3 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03017/0.3538, allocations: 30.71 MB / 455 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.355, allocations: 0.6019 MB / 455.6 MB, free: 4.477 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.376e-06/0.355, allocations: 0 / 455.6 MB, free: 4.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.0117/0.3667, allocations: 5.223 MB / 460.8 MB, free: 15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.3668, allocations: 64.39 kB / 460.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003245/0.3701, allocations: 2.7 MB / 463.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.3702, allocations: 49.69 kB / 463.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.3713, allocations: 1.303 MB / 464.9 MB, free: 10.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003087/0.3716, allocations: 339.2 kB / 465.3 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003485/0.372, allocations: 230.2 kB / 465.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3721, allocations: 345.9 kB / 465.8 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.3733, allocations: 478 kB / 466.3 MB, free: 9.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.3748, allocations: 0.6431 MB / 466.9 MB, free: 8.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002359/0.3772, allocations: 1.137 MB / 468.1 MB, free: 7.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3772, allocations: 0 / 468.1 MB, free: 7.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00371/0.3809, allocations: 1.976 MB / 470.1 MB, free: 5.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.381, allocations: 8.062 kB / 470.1 MB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/0.3811, allocations: 120 kB / 470.2 MB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006256/0.3818, allocations: 268.4 kB / 470.4 MB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007952/0.3826, allocations: 195.7 kB / 470.6 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00811/0.3907, allocations: 13.24 MB / 483.9 MB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.3919, allocations: 91.97 kB / 484 MB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.392, allocations: 59.98 kB / 484 MB, free: 6.184 MB / 398.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.0007462/0.3928, allocations: 425.2 kB / 484.4 MB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003392/0.3931, allocations: 367.5 kB / 484.8 MB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004686/0.3978, allocations: 2.226 MB / 487 MB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3978, allocations: 8 kB / 487 MB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3978, allocations: 4 kB / 487 MB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3979, allocations: 3.984 kB / 487 MB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.3995, allocations: 1.539 MB / 488.6 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000143/0.3997, allocations: 116 kB / 488.7 MB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000677/0.4004, allocations: 135.8 kB / 488.8 MB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006145/0.401, allocations: 260.3 kB / 489.1 MB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.569e-05/0.4011, allocations: 47.92 kB / 489.1 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008/0.4091, allocations: 13.24 MB / 0.4906 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4091, allocations: 0 / 0.4906 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004799/0.4139, allocations: 2.539 MB / 0.4931 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007189/0.4147, allocations: 0.4887 MB / 0.4936 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.4149, allocations: 16.19 kB / 0.4936 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008772/0.4158, allocations: 87.83 kB / 0.4936 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/0.4162, allocations: 140.8 kB / 0.4938 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.355e-05/0.4163, allocations: 47.98 kB / 0.4938 GB, free: 14.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002094/0.4184, allocations: 1.77 MB / 0.4956 GB, free: 13.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.312e-06/0.4184, allocations: 0 / 0.4956 GB, free: 13.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001346/0.4197, allocations: 0.6522 MB / 0.4962 GB, free: 12.47 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.00596/0.4257, allocations: 3.823 MB / 0.4999 GB, free: 8.543 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003622/0.4293, allocations: 2.51 MB / 0.5024 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4293, allocations: 192 / 0.5024 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.4316, allocations: 1.96 MB / 0.5043 GB, free: 3.766 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.4337, allocations: 0.5907 MB / 0.5049 GB, free: 3.168 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.176/0.6097, allocations: 23.08 MB / 0.5274 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009585/0.6107, allocations: 1.662 MB / 0.529 GB, free: 143 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001517/0.6122, allocations: 387.8 kB / 0.5294 GB, free: 142.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000968/0.6132, allocations: 1.196 MB / 0.5306 GB, free: 142.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6132, allocations: 1.344 kB / 0.5306 GB, free: 142.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6835/1.297, allocations: 64.08 MB / 0.5932 GB, free: 93.94 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/1.297, allocations: 205.7 kB / 0.5934 GB, free: 93.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.73/5.027, allocations: 0 / 0.5934 GB, free: 93.69 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches