Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001584/0.001584, allocations: 103.7 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.002143/0.002144, allocations: 208.6 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.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 63.38 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.13, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008001/0.1381, allocations: 4.257 MB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.1413, allocations: 1.211 MB / 363 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005964/0.142, allocations: 8 kB / 363.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004368/0.1424, allocations: 110.8 kB / 363.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008127/0.1433, allocations: 170.3 kB / 363.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009992/0.1443, allocations: 339.5 kB / 363.7 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001803/0.1461, allocations: 1.085 MB / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006418/0.1468, allocations: 290.6 kB / 365 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008528/0.1477, allocations: 402.8 kB / 365.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009408/0.1486, allocations: 466.2 kB / 365.9 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005044/0.1491, allocations: 119.9 kB / 366 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005485/0.1497, allocations: 120 kB / 366.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005007/0.1502, allocations: 223.3 kB / 366.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.1515, allocations: 446 kB / 366.8 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.1536, allocations: 1.215 MB / 368 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1536, allocations: 0 / 368 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1536, allocations: 0 / 368 MB, free: 3.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.872e-05/0.1537, allocations: 0 / 368 MB, free: 3.582 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.004973/0.1587, allocations: 1.263 MB / 369.2 MB, free: 2.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.1588, allocations: 8.031 kB / 369.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002642/0.159, allocations: 114.6 kB / 369.4 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003243/0.1594, allocations: 80 kB / 369.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.1604, allocations: 473.6 kB / 369.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.1605, allocations: 49.69 kB / 370 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.1607, allocations: 56.38 kB / 370 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00349/0.1642, allocations: 0.9721 MB / 371 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.1643, allocations: 0 / 371 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.1644, allocations: 32 kB / 371 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.1645, allocations: 12 kB / 371 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2342/0.3987, allocations: 0.9942 MB / 372 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005723/0.4045, allocations: 3.204 MB / 375.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/0.407, allocations: 0.9057 MB / 376.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.4082, allocations: 442.8 kB / 376.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.254e-05/0.4083, allocations: 13.47 kB / 376.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001352/0.4097, allocations: 470.1 kB / 377 MB, free: 17.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.867e-06/0.4097, allocations: 0 / 377 MB, free: 17.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003472/0.4132, allocations: 1.097 MB / 378.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.4133, allocations: 375.2 kB / 378.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009205/0.4142, allocations: 0.5745 MB / 379.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.706e-05/0.4143, allocations: 39.3 kB / 379.1 MB, free: 16.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.4145, allocations: 375.7 kB / 379.5 MB, free: 16.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.4147, allocations: 169.8 kB / 379.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/0.4149, allocations: 137.8 kB / 379.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.4151, allocations: 374 kB / 380.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4163, allocations: 402.5 kB / 380.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.4177, allocations: 0.6791 MB / 381.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.42, allocations: 0.9708 MB / 382.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.42, allocations: 1.938 kB / 382.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003264/0.4233, allocations: 1.148 MB / 383.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.4234, allocations: 66.09 kB / 383.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4234, allocations: 7.375 kB / 383.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.572e-05/0.4235, allocations: 11.33 kB / 383.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.4245, allocations: 225 kB / 383.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.416e-05/0.4246, allocations: 11.28 kB / 383.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.4257, allocations: 183.3 kB / 383.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.397e-05/0.4258, allocations: 30.19 kB / 383.9 MB, free: 13.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003392/0.4262, allocations: 230.3 kB / 384.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.4263, allocations: 72.59 kB / 384.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001681/0.4265, allocations: 76.3 kB / 384.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.4265, allocations: 5.094 kB / 384.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.4265, allocations: 1.125 kB / 384.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4266, allocations: 2.625 kB / 384.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003803/0.4304, allocations: 1.671 MB / 385.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.4304, allocations: 0 / 385.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008017/0.4312, allocations: 152.8 kB / 386.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/0.4312, allocations: 2.219 kB / 386.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.4313, allocations: 14.77 kB / 386.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.4313, allocations: 2.156 kB / 386.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4313, allocations: 0 / 386.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003413/0.4347, allocations: 1.31 MB / 387.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.4349, allocations: 148.9 kB / 387.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.435, allocations: 12.91 kB / 387.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008272/0.4359, allocations: 102 kB / 387.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.436, allocations: 47.56 kB / 387.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-05/0.4361, allocations: 18.45 kB / 387.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006084/0.4367, allocations: 407 kB / 388.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4367, allocations: 0 / 388.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007215/0.4374, allocations: 176.5 kB / 388.3 MB, free: 11.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003533/0.441, allocations: 1.864 MB / 390.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.4437, allocations: 1.022 MB / 391.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4437, allocations: 1.406 kB / 391.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.4448, allocations: 404.7 kB / 391.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.4455, allocations: 102.6 kB / 391.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.4576, allocations: 6.617 MB / 398.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.458, allocations: 0.8895 MB / 399.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005279/0.4586, allocations: 82.22 kB / 399.2 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.4589, allocations: 235.4 kB / 399.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of SimCode: time 1.864e-06/0.4589, allocations: 0 / 399.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.4939, allocations: 14.25 MB / 413.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.451, allocations: 11.98 kB / 413.7 MB, free: 5.797 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-11 Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches