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.0008653/0.0008653, allocations: 91.69 kB / 17.36 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 196.1 kB / 18.28 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002134, allocations: 8 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09051, allocations: 51.51 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1797/0.2702, allocations: 13.53 MB / 372.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.2898, allocations: 20.27 MB / 393.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.2918, allocations: 68.59 kB / 393.2 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003143/0.295, allocations: 0.99 MB / 394.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007997/0.303, allocations: 1.911 MB / 396.1 MB, free: 216 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005108/0.3081, allocations: 1.212 MB / 397.3 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.3182, allocations: 6.387 MB / 403.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006969/0.319, allocations: 408.6 kB / 404.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001776/0.3208, allocations: 1.022 MB / 405.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.3219, allocations: 1.05 MB / 406.2 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.322, allocations: 42.03 kB / 406.2 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004331/0.3264, allocations: 1.456 MB / 407.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003773/0.3268, allocations: 287.3 kB / 408 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.3284, allocations: 1.314 MB / 409.3 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005358/0.3338, allocations: 3.529 MB / 412.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3338, allocations: 0 / 412.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3338, allocations: 7.938 kB / 412.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.819e-05/0.3339, allocations: 4 kB / 412.8 MB, free: 6.102 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.004548/0.3384, allocations: 3.128 MB / 415.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3385, allocations: 8.031 kB / 416 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.3386, allocations: 98.5 kB / 416 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/0.339, allocations: 379.3 kB / 416.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/0.3422, allocations: 2.552 MB / 419 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.3422, allocations: 36.98 kB / 419 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.3423, allocations: 51.91 kB / 419.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.3437, allocations: 0.789 MB / 419.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3438, allocations: 0 / 419.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.684e-05/0.3438, allocations: 23.98 kB / 419.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.3438, allocations: 19.98 kB / 419.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.3455, allocations: 0.9178 MB / 420.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.3498, allocations: 2.998 MB / 423.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.3515, allocations: 0.8546 MB / 424.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.3529, allocations: 0.9994 MB / 425.7 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02672/0.3796, allocations: 30.74 MB / 456.4 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.3808, allocations: 0.6308 MB / 457 MB, free: 5.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.224e-06/0.3808, allocations: 0 / 457 MB, free: 5.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01213/0.3929, allocations: 5.695 MB / 462.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.393, allocations: 68.41 kB / 462.8 MB, free: 15.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/0.3961, allocations: 2.696 MB / 465.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-05/0.3962, allocations: 41.7 kB / 465.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.3973, allocations: 1.307 MB / 466.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.3976, allocations: 339.2 kB / 467.2 MB, free: 10.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.3977, allocations: 77.67 kB / 467.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3978, allocations: 349.9 kB / 467.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.3991, allocations: 0.5254 MB / 468.1 MB, free: 9.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.4004, allocations: 0.7134 MB / 468.8 MB, free: 9.207 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002574/0.403, allocations: 1.262 MB / 470.1 MB, free: 7.879 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.403, allocations: 0 / 470.1 MB, free: 7.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00412/0.4071, allocations: 2.112 MB / 472.2 MB, free: 5.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.4072, allocations: 8 kB / 472.2 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/0.4073, allocations: 124 kB / 472.3 MB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006204/0.4079, allocations: 264.4 kB / 472.6 MB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008611/0.4088, allocations: 227.7 kB / 472.8 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007817/0.4166, allocations: 13.25 MB / 486.1 MB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.4179, allocations: 124 kB / 486.2 MB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.418, allocations: 56 kB / 486.2 MB, free: 6.297 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.00076/0.4188, allocations: 425.6 kB / 486.6 MB, free: 5.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/0.4191, allocations: 367.5 kB / 487 MB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004921/0.4241, allocations: 2.355 MB / 489.4 MB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.4241, allocations: 8 kB / 489.4 MB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4241, allocations: 4 kB / 489.4 MB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.4241, allocations: 3.984 kB / 489.4 MB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.4258, allocations: 1.539 MB / 490.9 MB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001306/0.426, allocations: 120 kB / 491 MB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007348/0.4267, allocations: 171.8 kB / 491.2 MB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005799/0.4273, allocations: 256.3 kB / 491.5 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.732e-05/0.4274, allocations: 47.92 kB / 491.5 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007835/0.4352, allocations: 13.25 MB / 0.4929 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4352, allocations: 3.984 kB / 0.4929 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/0.4404, allocations: 2.731 MB / 0.4956 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006558/0.4411, allocations: 0.4926 MB / 0.4961 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002536/0.4414, allocations: 24 kB / 0.4961 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009497/0.4423, allocations: 111.8 kB / 0.4962 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.4426, allocations: 144.8 kB / 0.4963 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.241e-05/0.4427, allocations: 51.98 kB / 0.4964 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002001/0.4447, allocations: 1.774 MB / 0.4981 GB, free: 12.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4447, allocations: 0 / 0.4981 GB, free: 12.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001337/0.4461, allocations: 0.6522 MB / 0.4988 GB, free: 12.17 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.00639/0.4525, allocations: 4.008 MB / 0.5027 GB, free: 8.062 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003988/0.4565, allocations: 2.635 MB / 0.5052 GB, free: 5.273 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4565, allocations: 4.188 kB / 0.5052 GB, free: 5.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002396/0.4589, allocations: 2.018 MB / 0.5072 GB, free: 3.098 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.4614, allocations: 0.5872 MB / 0.5078 GB, free: 2.508 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1982/0.6595, allocations: 23.58 MB / 0.5308 GB, free: 142.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001115/0.6607, allocations: 1.658 MB / 0.5324 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001513/0.6622, allocations: 392.6 kB / 0.5328 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/0.6632, allocations: 1.191 MB / 0.534 GB, free: 142.1 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6633, allocations: 0 / 0.534 GB, free: 142.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07967/0.7429, allocations: 63.69 MB / 0.5962 GB, free: 92.41 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/0.7431, allocations: 206.4 kB / 0.5964 GB, free: 92.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.392/4.135, allocations: 0 / 0.5964 GB, free: 92.15 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