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.0015/0.0015, allocations: 117.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.001975/0.001975, allocations: 199.8 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.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 67.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2438, allocations: 50.53 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00512/0.249, allocations: 4.255 MB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.2511, allocations: 1.215 MB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.2513, allocations: 8 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002399/0.2516, allocations: 110.8 kB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.252, allocations: 186.3 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006245/0.2526, allocations: 327.5 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009336/0.2535, allocations: 1.105 MB / 416 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004178/0.254, allocations: 274.6 kB / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004827/0.2545, allocations: 406.8 kB / 416.6 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004854/0.2549, allocations: 462.2 kB / 417.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.2551, allocations: 120 kB / 417.2 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2553, allocations: 120 kB / 417.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.2555, allocations: 219.3 kB / 417.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004066/0.2559, allocations: 461.9 kB / 418 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.257, allocations: 1.225 MB / 419.2 MB, free: 7.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.257, allocations: 3.984 kB / 419.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.2571, allocations: 0 / 419.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2571, allocations: 3.938 kB / 419.2 MB, free: 7.078 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.002812/0.2599, allocations: 1.274 MB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.2599, allocations: 12.03 kB / 420.5 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/0.2601, allocations: 98.7 kB / 420.6 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.2603, allocations: 92.42 kB / 420.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000707/0.261, allocations: 481.9 kB / 421.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.261, allocations: 45.69 kB / 421.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.2611, allocations: 52.38 kB / 421.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.2632, allocations: 0.9722 MB / 422.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.2633, allocations: 3.984 kB / 422.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.302e-05/0.2633, allocations: 24 kB / 422.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.2634, allocations: 16 kB / 422.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002862/0.2662, allocations: 1.003 MB / 423.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00458/0.2708, allocations: 3.212 MB / 426.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/0.2731, allocations: 0.9119 MB / 427.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.2743, allocations: 445.7 kB / 427.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.911e-05/0.2744, allocations: 16.48 kB / 427.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.2756, allocations: 461.1 kB / 428.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.735e-06/0.2756, allocations: 0 / 428.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003209/0.2788, allocations: 1.104 MB / 429.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.279, allocations: 376.3 kB / 429.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007335/0.2797, allocations: 0.5732 MB / 430.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.2798, allocations: 45.64 kB / 430.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.28, allocations: 380.4 kB / 430.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2802, allocations: 178.5 kB / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.2804, allocations: 138.6 kB / 431.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2806, allocations: 370.8 kB / 431.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.2817, allocations: 401.7 kB / 431.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.2832, allocations: 0.6811 MB / 432.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/0.2854, allocations: 0.97 MB / 433.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.2854, allocations: 4 kB / 433.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002881/0.2883, allocations: 1.138 MB / 434.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.733e-05/0.2884, allocations: 63.41 kB / 434.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.2884, allocations: 4 kB / 434.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.2885, allocations: 19.92 kB / 434.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009964/0.2895, allocations: 216 kB / 434.9 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.971e-05/0.2895, allocations: 19.92 kB / 434.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.2905, allocations: 191.2 kB / 435.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/0.2906, allocations: 28 kB / 435.1 MB, free: 6.398 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.0003232/0.2909, allocations: 237.5 kB / 435.4 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2911, allocations: 67.58 kB / 435.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001521/0.2912, allocations: 70.41 kB / 435.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2912, allocations: 8 kB / 435.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.2913, allocations: 3.984 kB / 435.5 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.2913, allocations: 0 / 435.5 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003307/0.2946, allocations: 1.681 MB / 437.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2946, allocations: 0 / 437.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.2954, allocations: 147.8 kB / 437.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2954, allocations: 0 / 437.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-05/0.2954, allocations: 15.98 kB / 437.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2954, allocations: 4 kB / 437.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2954, allocations: 3.938 kB / 437.4 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00323/0.2987, allocations: 1.303 MB / 438.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.2989, allocations: 148.6 kB / 438.8 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.299, allocations: 12.06 kB / 438.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000768/0.2997, allocations: 111.8 kB / 438.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.2999, allocations: 52.25 kB / 439 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/0.2999, allocations: 20 kB / 439 MB, free: 2.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005452/0.3005, allocations: 402.8 kB / 439.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3005, allocations: 0 / 439.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006271/0.3011, allocations: 179.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.003542/0.3047, allocations: 1.855 MB / 441.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.3072, allocations: 1.001 MB / 442.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.3072, allocations: 3.938 kB / 442.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3083, allocations: 410.9 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.0006369/0.3089, allocations: 117.6 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.01157/0.3205, allocations: 6.452 MB / 449.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.321, allocations: 0.8785 MB / 450.3 MB, free: 6.797 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004175/0.3214, allocations: 84.84 kB / 450.4 MB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003982/0.3219, allocations: 243.3 kB / 450.6 MB, free: 6.477 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3219, allocations: 0 / 450.6 MB, free: 6.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03786/0.3597, allocations: 14.42 MB / 465 MB, free: 8.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.637/8.996, allocations: 9.391 kB / 465 MB, free: 8.199 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.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