Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001559/0.001559, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 60.17 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08254/0.08382, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1532/0.2371, allocations: 14.02 MB / 371.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01807/0.2552, allocations: 20.3 MB / 391.9 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001798/0.257, allocations: 62 kB / 392 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002858/0.2599, allocations: 1.118 MB / 393.1 MB, free: 360 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007534/0.2675, allocations: 2.271 MB / 395.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004629/0.2721, allocations: 1.427 MB / 396.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009793/0.282, allocations: 6.415 MB / 403.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000789/0.2828, allocations: 430.7 kB / 403.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.2847, allocations: 1.013 MB / 404.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00113/0.2858, allocations: 1.056 MB / 405.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.286, allocations: 71.25 kB / 405.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004266/0.2903, allocations: 1.474 MB / 407.2 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003018/0.2906, allocations: 318 kB / 407.5 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.2919, allocations: 1.301 MB / 408.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004569/0.2965, allocations: 3.603 MB / 412.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2965, allocations: 4 kB / 412.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2965, allocations: 4 kB / 412.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.169e-05/0.2965, allocations: 0 / 412.4 MB, free: 4.461 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.004642/0.3012, allocations: 3.506 MB / 415.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3012, allocations: 12.03 kB / 416 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.3014, allocations: 90.52 kB / 416 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003516/0.3017, allocations: 379.4 kB / 416.4 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003357/0.3051, allocations: 2.52 MB / 418.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.3051, allocations: 40.98 kB / 419 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.3052, allocations: 47.91 kB / 419 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.3066, allocations: 0.6953 MB / 419.7 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3066, allocations: 4 kB / 419.7 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.91e-05/0.3067, allocations: 20 kB / 419.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.3067, allocations: 19.98 kB / 419.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.3083, allocations: 0.785 MB / 420.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.3129, allocations: 2.895 MB / 423.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.3142, allocations: 0.705 MB / 424.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3152, allocations: 0.6541 MB / 424.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02751/0.3427, allocations: 30.71 MB / 455.5 MB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007566/0.3435, allocations: 361.6 kB / 455.9 MB, free: 4.496 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.415e-06/0.3435, allocations: 0 / 455.9 MB, free: 4.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003133/0.3467, allocations: 1.395 MB / 457.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3467, allocations: 59.41 kB / 457.3 MB, free: 3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003203/0.35, allocations: 2.803 MB / 460.1 MB, free: 180 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.553e-05/0.35, allocations: 37.7 kB / 460.2 MB, free: 136 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.3512, allocations: 1.387 MB / 461.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.3514, allocations: 165.7 kB / 461.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002969/0.3517, allocations: 222.2 kB / 461.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3518, allocations: 337.9 kB / 462.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005843/0.3524, allocations: 237.9 kB / 462.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007827/0.3532, allocations: 0.5891 MB / 463.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.3546, allocations: 0.8841 MB / 464 MB, free: 11.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.3546, allocations: 4 kB / 464 MB, free: 11.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002197/0.3568, allocations: 1.275 MB / 465.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3568, allocations: 8 kB / 465.2 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/0.357, allocations: 80.84 kB / 465.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/0.3575, allocations: 284.6 kB / 465.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.3581, allocations: 163.7 kB / 465.8 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000902/0.359, allocations: 0.8873 MB / 466.7 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008693/0.3599, allocations: 103.1 kB / 466.8 MB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-05/0.36, allocations: 64 kB / 466.8 MB, free: 9.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006091/0.3606, allocations: 426.6 kB / 467.2 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.3609, allocations: 363.6 kB / 467.6 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.3639, allocations: 1.288 MB / 468.9 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3639, allocations: 4 kB / 468.9 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3639, allocations: 0 / 468.9 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.364, allocations: 7.922 kB / 468.9 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003394/0.3674, allocations: 2.189 MB / 471.1 MB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.316e-05/0.3675, allocations: 68 kB / 471.1 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.3678, allocations: 67.88 kB / 471.2 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004561/0.3683, allocations: 256.9 kB / 471.5 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.635e-05/0.3683, allocations: 36.92 kB / 471.5 MB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008632/0.3692, allocations: 0.8602 MB / 472.4 MB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3692, allocations: 3.938 kB / 472.4 MB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.3711, allocations: 1.129 MB / 473.5 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006442/0.3717, allocations: 472.4 kB / 474 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.372, allocations: 15.98 kB / 474 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006645/0.3727, allocations: 32.72 kB / 474 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.3728, allocations: 59.94 kB / 474.1 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.471e-05/0.3729, allocations: 39.94 kB / 474.1 MB, free: 1.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.3752, allocations: 1.82 MB / 475.9 MB, free: 15.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3752, allocations: 0 / 475.9 MB, free: 15.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001259/0.3765, allocations: 0.57 MB / 476.5 MB, free: 15.2 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002997/0.3795, allocations: 2.358 MB / 478.8 MB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.3813, allocations: 0.8651 MB / 479.7 MB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3813, allocations: 0.9375 kB / 479.7 MB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009269/0.3823, allocations: 492.3 kB / 480.2 MB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.3847, allocations: 0.6119 MB / 480.8 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02259/0.4073, allocations: 20.13 MB / 0.4892 GB, free: 4.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.4083, allocations: 1.608 MB / 0.4908 GB, free: 3.035 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001384/0.4097, allocations: 394.9 kB / 0.4911 GB, free: 2.645 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.4107, allocations: 1.124 MB / 0.4922 GB, free: 1.52 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4108, allocations: 0 / 0.4922 GB, free: 1.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.227/0.6377, allocations: 61.66 MB / 0.5525 GB, free: 140.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.68, allocations: 8.188 kB / 0.5525 GB, free: 140.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-11 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches