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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_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.001446/0.001447, allocations: 115.9 kB / 16.63 MB, free: 6.332 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.00151/0.00151, allocations: 190 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 241.2 MB, free: 13.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009869/0.0009869, allocations: 48.52 kB / 300.2 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.09029, allocations: 49.44 MB / 349.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01196/0.1023, allocations: 14.06 MB / 363.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1663/0.2687, allocations: 20.13 MB / 383.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.2702, allocations: 66.56 kB / 383.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002625/0.2728, allocations: 0.9802 MB / 384.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007037/0.2799, allocations: 1.964 MB / 386.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00463/0.2846, allocations: 1.256 MB / 388.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00864/0.2932, allocations: 6.487 MB / 394.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006083/0.2939, allocations: 429 kB / 395 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.2954, allocations: 1.07 MB / 396.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009686/0.2963, allocations: 1.083 MB / 397.2 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.2965, allocations: 77.62 kB / 397.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004081/0.3006, allocations: 1.484 MB / 398.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002221/0.3008, allocations: 331.8 kB / 399.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009257/0.3018, allocations: 1.322 MB / 400.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003586/0.3054, allocations: 3.645 MB / 404 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3054, allocations: 0 / 404 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3054, allocations: 0 / 404 MB, free: 14.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.7e-05/0.3054, allocations: 0 / 404 MB, free: 14.57 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.004916/0.3104, allocations: 3.573 MB / 407.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.3104, allocations: 15.97 kB / 407.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.3105, allocations: 99.39 kB / 407.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004137/0.311, allocations: 379.5 kB / 408.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003278/0.3143, allocations: 2.536 MB / 410.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.3143, allocations: 37 kB / 410.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.3144, allocations: 51.91 kB / 410.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3158, allocations: 0.7576 MB / 411.5 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3159, allocations: 0 / 411.5 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.3159, allocations: 23.98 kB / 411.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.316, allocations: 19.98 kB / 411.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.3177, allocations: 0.8583 MB / 412.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004478/0.3222, allocations: 2.967 MB / 415.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.3239, allocations: 0.7948 MB / 416.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.3253, allocations: 0.9527 MB / 417.1 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02887/0.3542, allocations: 30.06 MB / 447.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.3554, allocations: 0.5996 MB / 447.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.855e-06/0.3555, allocations: 3.938 kB / 447.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01187/0.3673, allocations: 5.213 MB / 453 MB, free: 9.012 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.3674, allocations: 68.39 kB / 453 MB, free: 8.934 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/0.3705, allocations: 2.7 MB / 455.7 MB, free: 6.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.3706, allocations: 45.69 kB / 455.8 MB, free: 6.168 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001069/0.3717, allocations: 1.307 MB / 457.1 MB, free: 4.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/0.372, allocations: 331.2 kB / 457.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003467/0.3724, allocations: 234.3 kB / 457.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3725, allocations: 345.9 kB / 458 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.3737, allocations: 474 kB / 458.4 MB, free: 3.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.375, allocations: 0.6431 MB / 459.1 MB, free: 2.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002472/0.3775, allocations: 1.133 MB / 460.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3775, allocations: 3.938 kB / 460.2 MB, free: 1.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004009/0.3815, allocations: 1.971 MB / 462.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3816, allocations: 8 kB / 462.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001572/0.3817, allocations: 124 kB / 462.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007131/0.3825, allocations: 272.8 kB / 462.6 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/0.3834, allocations: 199.7 kB / 462.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009293/0.3927, allocations: 14.24 MB / 477 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.3942, allocations: 87.89 kB / 477.1 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.3944, allocations: 64.06 kB / 477.2 MB, free: 15.12 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.0008639/0.3953, allocations: 420.8 kB / 477.6 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005343/0.3958, allocations: 379.4 kB / 478 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005173/0.401, allocations: 2.216 MB / 480.2 MB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.401, allocations: 8 kB / 480.2 MB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.401, allocations: 4 kB / 480.2 MB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.401, allocations: 3.984 kB / 480.2 MB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.403, allocations: 1.547 MB / 481.7 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000155/0.4032, allocations: 120 kB / 481.9 MB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007629/0.4039, allocations: 135.8 kB / 482 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006532/0.4046, allocations: 264.3 kB / 482.2 MB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.281e-05/0.4047, allocations: 39.98 kB / 482.3 MB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009539/0.4142, allocations: 14.25 MB / 496.5 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4143, allocations: 4.062 kB / 496.5 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/0.42, allocations: 2.547 MB / 499.1 MB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.4211, allocations: 496.5 kB / 499.6 MB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005497/0.4216, allocations: 16 kB / 499.6 MB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.4228, allocations: 79.89 kB / 499.7 MB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003793/0.4231, allocations: 144.8 kB / 499.8 MB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.4233, allocations: 47.98 kB / 499.9 MB, free: 6.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.4255, allocations: 1.77 MB / 0.4899 GB, free: 4.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4255, allocations: 0 / 0.4899 GB, free: 4.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001598/0.4271, allocations: 0.6444 MB / 0.4905 GB, free: 4.336 MB / 414.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.006617/0.4338, allocations: 3.841 MB / 0.4942 GB, free: 404 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004312/0.4381, allocations: 2.538 MB / 0.4967 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4381, allocations: 0 / 0.4967 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002512/0.4406, allocations: 1.956 MB / 0.4986 GB, free: 11.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002728/0.4434, allocations: 0.6295 MB / 0.4993 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0463/0.4897, allocations: 23.1 MB / 0.5218 GB, free: 1.926 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.4908, allocations: 1.662 MB / 0.5234 GB, free: 240 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1534/0.6442, allocations: 388 kB / 0.5238 GB, free: 152.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/0.6457, allocations: 1.195 MB / 0.525 GB, free: 152.1 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6457, allocations: 0 / 0.525 GB, free: 152.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1054/0.7511, allocations: 65.42 MB / 0.5889 GB, free: 104.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001294/0.7512, allocations: 209.5 kB / 0.589 GB, free: 104.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.313/5.065, allocations: 4.062 kB / 0.5891 GB, free: 104.6 MB / 446.1 MB (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 --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) 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) Reference file matches