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.001349/0.001349, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2635, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00539/0.2689, allocations: 4.247 MB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.271, allocations: 1.215 MB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.2713, allocations: 8 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.2715, allocations: 110.8 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003451/0.2719, allocations: 178.3 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000676/0.2726, allocations: 335.5 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.2737, allocations: 1.089 MB / 415.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.2741, allocations: 282.6 kB / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004546/0.2746, allocations: 410.8 kB / 416.6 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004867/0.2751, allocations: 458.3 kB / 417.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.2752, allocations: 124 kB / 417.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.2754, allocations: 116 kB / 417.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.2756, allocations: 227.3 kB / 417.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003986/0.276, allocations: 450 kB / 418 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.2771, allocations: 1.217 MB / 419.2 MB, free: 7.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2771, allocations: 4 kB / 419.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2771, allocations: 0 / 419.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.2771, allocations: 3.938 kB / 419.2 MB, free: 7.09 MB / 334.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.002806/0.2799, allocations: 1.285 MB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.28, allocations: 8.031 kB / 420.5 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.2801, allocations: 102.7 kB / 420.6 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.2803, allocations: 88.42 kB / 420.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.281, allocations: 477.9 kB / 421.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.725e-05/0.281, allocations: 49.69 kB / 421.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.2811, allocations: 60.38 kB / 421.2 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.2832, allocations: 0.9672 MB / 422.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2832, allocations: 0 / 422.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/0.2833, allocations: 32 kB / 422.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.2834, allocations: 16 kB / 422.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.2861, allocations: 1.003 MB / 423.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004792/0.2909, allocations: 3.216 MB / 426.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.2931, allocations: 0.9036 MB / 427.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.2943, allocations: 449.7 kB / 427.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.296e-05/0.2943, allocations: 24.41 kB / 427.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.2955, allocations: 461.1 kB / 428.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.745e-06/0.2955, allocations: 0 / 428.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003021/0.2985, allocations: 1.092 MB / 429.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.2988, allocations: 376.3 kB / 429.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007804/0.2996, allocations: 0.581 MB / 430.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.16e-05/0.2996, allocations: 41.64 kB / 430.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.2999, allocations: 376.4 kB / 430.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.3001, allocations: 182.5 kB / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.3003, allocations: 134.6 kB / 431 MB, free: 10.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3005, allocations: 378.8 kB / 431.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.3016, allocations: 401.7 kB / 431.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.303, allocations: 0.6772 MB / 432.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00215/0.3051, allocations: 0.97 MB / 433.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3052, allocations: 0 / 433.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00276/0.3079, allocations: 1.138 MB / 434.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.927e-05/0.308, allocations: 63.47 kB / 434.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.308, allocations: 8 kB / 434.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.308, allocations: 11.94 kB / 434.7 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.3091, allocations: 219.7 kB / 434.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/0.3091, allocations: 19.94 kB / 434.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009926/0.3101, allocations: 195.2 kB / 435.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.138e-05/0.3102, allocations: 35.98 kB / 435.1 MB, free: 6.391 MB / 350.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.0003326/0.3105, allocations: 225.5 kB / 435.4 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.3106, allocations: 71.58 kB / 435.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.3108, allocations: 70.41 kB / 435.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3108, allocations: 8 kB / 435.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3108, allocations: 4 kB / 435.5 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3108, allocations: 3.984 kB / 435.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.3141, allocations: 1.669 MB / 437.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3141, allocations: 3.984 kB / 437.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007971/0.3149, allocations: 147.8 kB / 437.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3149, allocations: 4 kB / 437.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.249e-05/0.315, allocations: 12 kB / 437.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.315, allocations: 7.984 kB / 437.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.315, allocations: 7.922 kB / 437.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.3182, allocations: 1.303 MB / 438.7 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.3184, allocations: 152.6 kB / 438.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.3185, allocations: 12 kB / 438.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007366/0.3193, allocations: 103.9 kB / 438.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.3194, allocations: 52.31 kB / 439 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.3195, allocations: 23.92 kB / 439 MB, free: 2.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000592/0.3201, allocations: 402.8 kB / 439.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3201, allocations: 0 / 439.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006149/0.3207, allocations: 175.8 kB / 439.6 MB, free: 1.852 MB / 350.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.00353/0.3242, allocations: 1.859 MB / 441.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002443/0.3267, allocations: 1 MB / 442.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3267, allocations: 3.938 kB / 442.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3277, allocations: 411.3 kB / 442.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.3284, allocations: 102.1 kB / 442.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.34, allocations: 6.46 MB / 449.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.3405, allocations: 0.8785 MB / 450.3 MB, free: 6.797 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003878/0.3409, allocations: 84.86 kB / 450.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00039/0.3413, allocations: 231.3 kB / 450.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3413, allocations: 4 kB / 450.6 MB, free: 6.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03986/0.3812, allocations: 14.42 MB / 465 MB, free: 8.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.182/9.563, allocations: 10.55 kB / 465 MB, free: 8.203 MB / 382.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.1.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